Example - IDOR, try it!

  1. Register 2 accounts (user A and user B)
  2. On the user A:

  3. Press on the first link "Continue reading..."
  4. Notice the URL format
  5. Press on any other link
  6. Notice the number in URL is changing
  7. Press on the second link "Delete"
  8. Remember the URL format and request method
  9. On the user B:

  10. Press on the first link "Continue reading..."
  11. Change the username to user A in URL
  12. Notice that we cannot read the jokes
  13. Open Developer tools
  14. Paste the following code to console, but change user to user A and id to 1 or 2:

    fetch("/idor-workshop-practice-2/delete/user/id", { method: 'DELETE', }) .then(response => response.text()) .then(text => console.log(text))

  15. Notice that we deteled other user's joke
  16. You can return to user A session and check that the joke is gone
  17. Well done!

To work with you jokes you need to create account

Username:

Password: