Cross-site Scripting (XSS) - Reflected in znixbtw/panel-v2

Valid

Reported on

Aug 23rd 2021


✍️ Description

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into websites. An attacker can use XSS to send a malicious script to an unsuspecting user. The end user’s browser has no way to know that the script should not be trusted, and will execute the script.

https://github.com/znixbtw/panel-v2/ is vulnerable to XSS as shown below:

🕵️‍♂️ Proof of Concept

Vulnerable resource: panel-v2/profile.php Vulnerable variable: $_SERVER["PHP_SELF"]; Snippet:

<form method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?>">

As an authenticated user perform the following request in a browser:

localhost/panel/profile.php/'"/><script>alert(/XSS/)</script>

</br> </br>
Observe the XSS in the response

💥 Impact

Because it thinks the script came from a trusted source, the malicious script can access any cookies, session tokens, or other sensitive information retained by the browser and used with that site. These scripts can even rewrite the content of the HTML page.

We have contacted a member of the znixbtw/panel-v2 team and are waiting to hear back 2 years ago
znixbtw validated this vulnerability a year ago
hitisec has been awarded the disclosure bounty
The fix bounty is now up for grabs
znixbtw marked this as fixed with commit 19096f a year ago
The fix bounty has been dropped
This vulnerability will not receive a CVE
profile.php#L119 has been validated
to join this conversation