Lab: Exploiting an API endpoint using documentation
Observe
Find endpoint
- try to access
/apipath - and we found api documentation
- it contain http method and path url information that we can use against specific endpoint
Use / try endpoint
- click delete user in documentation table and popup will showing
- input the username and click “Send Request”
- but it will throw
"unauthorized"in response
Solution
- login as user
wienerwith credentialwiener:peter - open
/apipath - click delete user in documentation table and popup will showing
- input the username and click “Send Request”
- now the user
carloswill successfully deleted
lab solved