An open API service indexing awesome lists of open source software.

https://github.com/soufianetahiri/HttpRquestPlayer

This small utility could help you to find authorization bugs.
https://github.com/soufianetahiri/HttpRquestPlayer

auth authorization cookie http-client pentest-tool permissions privileges roles

Last synced: 4 months ago
JSON representation

This small utility could help you to find authorization bugs.

Awesome Lists containing this project

README

          

## What is it?
This utility could help you to find authorization bugs. Just edit *request.json* by providing for exmple a high and a low priviliged user's requests headers, paths to scan and thats it. The tool will proceed to requests with both headers and hilight diffirent http response.

For now, It supports GET and POST .

## requests.json sample

{
"baseUrl":"https://www.target.someurl.com",
"originalHeaders":[
"Host: www.target.someurl.com",
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0",
"Accept: application/json",
"Accept-Language: en-US,en;q=0.5",
"Accept-Encoding: gzip, deflate, br",
"Referer: https://www.someurl.com",
"Authorization: Bearer AdminToken",
"Connection: keep-alive",
"Cookie: cookie1=random; cookie2=random"
],
"newHeaders":[
"Host: www.target.someurl.com",
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0",
"Accept: application/json",
"Accept-Language: en-US,en;q=0.5",
"Accept-Encoding: gzip, deflate, br",
"Referer: https://www.someurl.com",
"Authorization: Bearer SimpleUserToken",
"Connection: keep-alive",
"Cookie: cookie1=random2; cookie2=random2"
],
"requests":{
"get":[
"/api/v1/users/me/dashboard",
"/api/v1/campaigns/kpis/chart",
"/api/v1/users/4623",
"/api/v1/users/4622",
"/identity/.well-known/openid-configuration"
],
"withBodies":{
"post":{
"urls":[
"/api/v1/advertisers/3120/users/"
],
"bodies":[
"{\"isActive\":true,\"firstName\":\"httprequest\",\"lastName\":\"soufiane\",\"preference\":{\"culture\":\"en\"},\"roles\":[1],\"email\":\"soufianetahiri@gmail.com\"}"
]
}
}
}
}

You can add as many headers as you want, the tool will parse and add them to the httpclient automatically.
## Output sample
![enter image description here](https://soufiane.website/imgs/httprequestplayer_.jpg)
## ToDo

- [ ] Handle exceptions
- [ ] Support more methods (~~POST~~ PUT DELETE...)
- [ ] Parse Burp requests
- [ ] Add verbosity