Commit be636dd4 authored by Philip Linghammar's avatar Philip Linghammar
Browse files

Updates insecure-direct-object-reference-idor.md

Auto commit by GitBook Editor
parent 0b5281d2
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
## Insecure Direct Object Reference



The vulnerability arises when the user has direct access to objects from user-supplied data.



The classic example of this would be something like the follwoing

```
http://foo.bar/changepassword?user=someuser
```

Imagine that you know anothers username , then you can just change the username and be able to change the password for that user. 
Imagine that you know anothers username , then you can just change the username and be able to change the password for that user. The data you can access can be anything, maybe private comments, messages, images, user data.



@@ -22,5 +18,11 @@ If you have access to the source-code that is an easy way to do it. Check the se



### Examples



https://hackerone.com/reports/53858