Skip to content

This small utility could help you to find authorization bugs.

Notifications You must be signed in to change notification settings

soufianetahiri/HttpRquestPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

ToDo

  • Handle exceptions
  • Support more methods (POST PUT DELETE...)
  • Parse Burp requests
  • Add verbosity

Releases

No releases published

Packages

No packages published

Languages