Demo: finding and fixing an IDOR
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
exploit and fix an IDOR in Shop. Prepares JNR-040-LAB1.
Draft outline details
Step by step
- Create two customers, each with an order.
- Log in as A and request B's order by ID: it returns 200 with B's data.
- Find the cause:
findByIdwithout an owner condition. - Planned mistake: fixing only the
GETand forgettingDELETE /orders/{id}. Show the same attack onDELETE, and fix every endpoint. - Switch to
findByIdAndCustomerIdand return 404. - Add a test: A requests B's order and expects 404.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.