提出 #255756: PHPGurukul Online Notes Sharing System 1.0 Cross Site Scripting情報

タイトルPHPGurukul Online Notes Sharing System 1.0 Cross Site Scripting
説明Bug Description: A Stored cross-site scripting (XSS) vulnerability in Online Notes Sharing System 1.0 allows attackers to execute arbitrary web scripts via a crafted payload injected into the "Name" and "Email" field. Steps to Reproduce: # Exploit Title: Stored cross-site scripting (XSS) vulnerability in Online Notes Sharing System # Date: 20-12-2023 # Exploit Author: dhabaleshwardas # Vendor Homepage: https://phpgurukul.com/ # Software Link: https://phpgurukul.com/online-notes-sharing-system-using-php-and-mysql/ # Version: 1.0 # Tested on: firefox/chrome/brave # CVE : To reproduce the attack: 1- First login to the application then head to the http://localhost/onss/user/profile.php endpoint 2- Then click on "Update" and capture the request in Burp Intercept. 3- Here, we will change the value of "Full Name" and "Email" parameter to payloads for XSS. In the "name" parameter we put "><script>alert(2)</script> and in the "email" parameter we put "><script>alert(document.cookie)</script> the rest of parameter we leave as it is. 4- We then forward the request. We see in the browser that the payloads got executed, first the payload in the "name" parameter got executed displaying a "2" and then the payload in the "email" parameter got executed displaying the Cookie in the popup. 5- This shows us that, the user input is directly embedded into the HTML content without proper sanitization or encoding. The strings "><script>alert(2)</script> and "><script>alert(document.cookie)</script> is rendered as part of the HTML, making it vulnerable to script injection. 6- Stored XSS is a high severity vulnerability as, Attackers can steal sensitive information, such as login credentials, session tokens, or personal details, from users who unknowingly execute the malicious script. If a user with administrative privileges is affected, attackers can hijack their session, gaining unauthorized access to sensitive areas of a website or application. Remediation: 1- Implement strict input validation on both the client and server sides. Validate and sanitize user input to ensure that it does not contain malicious code. 2- Encode user-generated content before rendering it in the browser. This helps to neutralize any malicious scripts and ensures that user input is treated as data, not executable code.
ソース⚠️ https://github.com/dhabaleshwar/Open-Source-Vulnerabilities/blob/main/note_sharing_storedxss..md
ユーザー
 dhabaleshwar (UID 58737)
送信2023年12月20日 17:27 (2 年 ago)
モデレーション2023年12月21日 17:05 (24 hours later)
ステータス承諾済み
VulDBエントリ248737 [PHPGurukul Online Notes Sharing System 1.0 user/profile.php name/email クロスサイトスクリプティング]
ポイント20

Want to know what is going to be exploited?

We predict KEV entries!