checkitout icon indicating copy to clipboard operation
checkitout copied to clipboard

SUPEE-9767?

Open jthln opened this issue 7 years ago • 5 comments

Are there any plans to include the SUPEE-9767 changes?

Currently formkey validation in e.g. OnepageController::savePayment etc. is missing.

jthln avatar Jun 06 '17 08:06 jthln

Hi @jthln, thanks for the report! I haven't looked into this just yet, though I shall do so in the coming week or so.

A quick glance at this seems to indicate that this should be compatible with the form key changes -- the method savePaymentAction() does a call to parent::savePaymentAction(), which in turn checks the form key changes.

https://github.com/EcomDev/checkitout/blob/d8f3f56b0d4b4c2572c8ea849505107979486304/src/app/code/community/EcomDev/CheckItOut/controllers/OnepageController.php#L481

Or are you talking about something else?

andrewhowdencom avatar Jun 06 '17 13:06 andrewhowdencom

I guess the various templates need to be updated to include the form key though?

bluec avatar Jun 06 '17 15:06 bluec

Oh indeed, if they do not include it, then they must. I need to do this in the coming weeks anyway -- So, yes, there are plans to include it, but at this stage I don't have a fixed timeframe.

andrewhowdencom avatar Jun 07 '17 09:06 andrewhowdencom

I've been testing this and no template changes are needed in this extension from what I can see. Since this extension uses the various form templates from the standard onepage checkout, then provided those have been adjusted in the active theme to include the form_key fields then it all works fine.

Note: the Javascript fix in release v1.5.15 is needed to prevent one of the form_key fields from becoming disabled.

I haven't yet determined whether the form_keys are being validated on submission of every step - from a quick look I can see that not all methods call the parent so it is possible there may need to be some minor changes here, but this doesn't prevent checkout from working.

bluec avatar Jun 08 '17 16:06 bluec

@bluec Thanks for your work, it's much appreciated <3

andrewhowdencom avatar Jun 09 '17 07:06 andrewhowdencom