Cross Site Scripting(XSS) In Hidden Parameter.
2021-07-05 02:48:18 Author: infosecwriteups.com(查看原文) 阅读量:87 收藏

Shantanu Kulkarni

Hello All amazing Hackers out there…!!

My name is Shantanu Kulkarni . I am working as Security Consultant and Lead penetration Tester at a Security Consultancy firm in India. Also am a part time Bug Bounty Hunter. Today I am writing about one of the interesting XSS bug I found while Bug hunting. So let’s get started..!!

Consider the target name as domain.com . Usually, I follows the approach for Recon as Subdomain Enumeration → Live Targets → URLs → Looking for bugs but this time I Decided to go for finding parameters rather than looking for URLs. So I tried few tools like Arjun and ParamSpider to collect parameters. After collecting output from them a parameter ‘failure’ took my attention so I decided to test it further.

After few tries, I observed as the failure parameter is accepting only two values 1 or 0 and other inputs are just displaying at the bottom of web page on the red Box. When we input it as 0 the page goes blank and if we input there as 1 the page gets loaded properly. So I started it with experimenting on user registration page, admin login, support login and also for login bypass which may leads to internal dashboard access but no luck…!!

So even if the page was not loading properly but the input on failure parameter is displaying on web Page so why not look for XSS? so I started Checking the Source code. Grabbed few payloads from PortSwigger/BruteLogic and started crafting it for pop-up. Again it was blocking alert keyword but accepting confirm and prompt. so got a pop-up finally..!!

Reported it with POC and showed an impact for cookie stealing. report is triaged as of now.


文章来源: https://infosecwriteups.com/cross-site-scripting-xss-in-hidden-parameter-47e41f08424e?source=rss----7b722bfd1b8d--bug_bounty
如有侵权请联系:admin#unsafe.sh