Eternal · Report #335481
[Zomato's Blog] POST based XSS on https://www.zomato.com/blog/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=8.2
How it was found
Issue details:
POST based XSS
Vulnerable URL:
https://www.zomato.com/blog/wp-admin/admin-ajax.php?td_theme_name=Newspaper&v=8.2
Vulnerable Parameter:
loopState[moduleId]
Payload:
<svg><script>prompt(document.domain)</script>
Steps to reproduce:
- As this is a post based you need to create a html csrf to trigger xss.
- HTML code is below..
- Save this as a .html file.
- Open that html file, it will trigger xss.
POC:
Screenshot and necessary files are enclosed in attachment.
Impact
Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request that, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.