제출 #388905: GitHub Insurance Management System 1.0 Cross Site Scripting정보

제목GitHub Insurance Management System 1.0 Cross Site Scripting
설명1. Description A Stored Cross-Site Scripting (XSS) vulnerability has been identified in the Life Insurance Management System within the addNominee.php endpoint. This vulnerability enables an attacker to inject malicious JavaScript code into the "Nominee" field associated with a client ID box. The injected script is stored in the database and executed when the affected page is viewed by users, including administrators. 2. Steps to Reproduce Navigate to the Add Nominee Page: Access the application at: http://localhost/life-insurance-management-system/lims/addNominee.php Inject Malicious Script: In the "Nominee-Client ID" field, input the following payload: <script>alert(document.domain)</script> Submit the Form: Submit the form with the injected payload. Trigger the XSS: Navigate to the Nominee section or any page within the application that displays the stored nominee data. Upon loading this page, the malicious script is executed, resulting in an alert box that displays the document's domain, confirming the XSS vulnerability. 3. Impact Confidentiality: Attackers can exploit this vulnerability to steal sensitive information, including session tokens, cookies, or other private data. Integrity: Attackers could manipulate the content displayed to users, potentially altering important information. Availability: Malicious scripts can be used to create denial of service (DoS) conditions through heavy or infinite loop scripts. 4. Proof of Concept Screenshot: (Include an attached screenshot showing the alert triggered by the payload) Payload: <script>alert(document.domain)</script> 5. Recommendations To address and mitigate the identified XSS vulnerability, consider implementing the following measures: Sanitize Input: Ensure that all user inputs are sanitized and validated before being stored in the database. Use libraries or frameworks that offer secure input handling. Escape Output: Properly escape and encode output when displaying user-generated content to prevent the execution of injected scripts. Content Security Policy (CSP): Implement a robust Content Security Policy to limit the sources from which scripts can be loaded and executed, reducing the risk of XSS attacks.
원천⚠️ http://localhost/life-insurance-management-system/lims/nominee.php
사용자
 fahadletsleep (UID 73320)
제출2024. 08. 10. PM 01:03 (2 연령 ago)
모더레이션2024. 08. 18. AM 10:24 (8 days later)
상태수락
VulDB 항목275041 [nafisulbari/itsourcecode Insurance Management System 1.0 Add Nominee Page addNominee.php Nominee-Client ID 크로스 사이트 스크립팅]
포인트들20

Interested in the pricing of exploits?

See the underground prices here!