Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--output-request is not working when raw request is provided as input #471

Open
darshanpjpt opened this issue May 18, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@darshanpjpt
Copy link

Steps to Reproduce

raw-request-file:

POST /search.php?test=query HTTP/1.1
Host: testphp.vulnweb.com
Content-Length: 26
Cache-Control: max-age=0
Custom-Head-X: demo
Upgrade-Insecure-Requests: 1
Origin: http://testphp.vulnweb.com
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.178 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Referer: http://testphp.vulnweb.com/
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Connection: close

searchFor=demo&goButton=go

Dalfox Command:
dalfox file --rawdata dalfox-req.txt --poc-type=http-request -o output.json --format json --only-poc=v --output-request --http

The output will contain the following items but not raw_request:

{
  "type": "V",
  "inject_type": "inHTML-none(1)-FORM",
  "poc_type": "http-request",
  "method": "POST",
  "data": "http://testphp.vulnweb.com/search.php?test=query -d goButton=go&searchFor=demo%3Ciframe+srcdoc%3D%22%3Cinput+onauxclick%3Dconfirm%281%29%3E%22+class%3Ddalfox%3E%3C%2Fiframe%3E",
  "param": "searchFor",
  "payload": "<iframe srcdoc=\"<input onauxclick=confirm(1)>\" class=dalfox></iframe>",
  "evidence": "49 line:  '>searched for: demo<iframe srcdoc=\"<input onauxclick=confirm(1)>\" class=dalfox>",
  "cwe": "CWE-79",
  "severity": "High",
  "message_id": 1544,
  "message_str": "Triggered XSS Payload (found DOM Object): searchFor=<iframe srcdoc=\"<input onauxclick=confirm(1)>\" class=dalfox></iframe>"
}

Environment

  • Dalfox Version: 2.9.0
@darshanpjpt darshanpjpt added the bug Something isn't working label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant