Test profile updates for IDOR

Insecure direct object reference (IDOR)Discovery

Written with a model's help from “Amelia Booking Pro ≤ 9.1.2: Authenticated Customer-to-Admin Password Reset via IDOR” by Hunter Jensen on Black Lantern Security. Read the writeup before relying on it.

When testing a target like target.com, try updating your profile with a modified externalId field set to another user's ID, such as an admin's ID, and a new password. If the update is successful and you can log in as the targeted user, it may indicate an Insecure Direct Object Reference (IDOR) vulnerability. This can allow an attacker to take over any user account, including administrators, by exploiting the lack of authorization checks on the externalId field. To test, send a request to the profile update endpoint with a payload containing the modified externalId and password, such as: { "externalId": 1, "password": "newpassword" } If the server accepts the update without validating your relationship to the targeted user, it may be vulnerable to IDOR.

Follow #authentication, #idor or #wordpress for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.