Skip to content
Ameen Abozaid
Planned lessonJNR-041-L07

Demo: exploiting and fixing mass assignment and SSRF

  • Lesson 7 of 7
  • Junior
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 two flaws locally. Prepares JNR-041-LAB1.

Draft outline details

Step by step

  1. On the vulnerable branch, register with "role":"ADMIN" in the body and become an admin.
  2. Fix with a RegisterRequest DTO; the extra field is now ignored.
  3. Call the "import product image from URL" feature with an internal address; see data returned.
  4. Planned mistake: a deny-list for localhost is bypassed with 127.0.0.1 or a redirect. Fix: an allow-list of hosts and resolved-address checks.
  5. Add one regression test for each fix.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.