Hebing123 / cve

0 stars 0 forks source link

HadSky v7.6.3 has a reflective Cross-site Scripting (XSS) vulnerability #29

Open Hebing123 opened 6 months ago

Hebing123 commented 6 months ago

Summary

A reflected XSS (Cross-Site Scripting) vulnerability has been discovered in HadSky v7.6.3. The vulnerability allows for the execution of arbitrary HTML/javascript code, potentially resulting in the theft of sensitive user information.

Details

The vulnerability is located in the chklogin.php of the application, and the vulnerability occurs because the referer is not escaped and is directly output to the page.

Proof of Concept (POC)

http://your-ip/index.php?c=chklogin&chkcsrfval=1&referer=1%3Csvg%20onload=alert(document.cookie)%3E&return=json

image

Affected Component

File: phpscript/chklogin.php image

Impact

The execution of arbitrary HTML or JavaScript code in the context of the user's browser can lead to a plethora of cyber threats such as: Stealing user session cookies, leading to session hijacking. Conducting phishing attacks by displaying false information. Defacing the website or creating havoc affecting the website's reputation. Gaining control of the user's interaction with the application for their benefit.

Recommendations

To effectively mitigate this vulnerability, it is strongly recommended to: Implement proper input validation before utilizing user input in application logic. Utilize Content-Security-Policy (CSP) to limit the impact of XSS.

Hebing123 commented 4 months ago

CVE-2024-30885