I am exploring the vulnerability (CVE-2020-5250) found in PrestaShop software versions < Could somebody explain how (with which method) was the program exactly exploitable? And why is the patch provided adequate? Is this a common mistake made when developing software in php? Could not find any information on this topic and thought it would help other developers to learn from this mistake.

Thank you in advance!


Without doing an in-depth analysis, it looks like a case of IDOR (Insecure Direct Object References). This means that the server does not properly enforce access controls; simply knowing a value (in this case, id_address or id_customer) is enough to gain access to the object. By changing these values in a form field, a user could manipulate other accounts that they should not have access to.

The patch seems logical; instead of trusting user-provided form input to determine which user the data belongs to, it now appears to check the user's session data, which cannot be forged by the user.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.