Stored XSS Vulnerability in Phpgurukul Online Birth Certificate System
Phpgurukul Online Birth Certificate System version 1.0 is vulnerable to Stored Cross-Site Scripting (XSS) via the profile name field, allowing authenticated attackers to execute arbitrary JavaScript in the context of other users.
CVE search metadata
CVE search record: CVE-2024-57175. Severity: medium. CVSS: 5.4. EPSS: 0.28%. KEV: no. Product: Online Birth Certificate System (1.0). Brief: Stored XSS Vulnerability in Phpgurukul Online Birth Certificate System. Brief link: https://feed.craftedsignal.io/briefs/2026-08-cve-2024-57175/
A stored cross-site scripting (XSS) vulnerability exists in the Phpgurukul Online Birth Certificate System version 1.0. The vulnerability resides within the 'profile_name' parameter of the '/user/certificate-form.php' script. An attacker with authenticated access can inject malicious JavaScript payloads into the profile name field. When this data is rendered by the application, the payload executes within the victim's browser session. This vulnerability poses a risk to data integrity and session security, as an attacker could potentially steal session tokens or manipulate the victim's view of the application. The vulnerability is identified as CVE-2024-57175 and carries a CVSS score of 5.4. Public proof-of-concept code is available, increasing the likelihood of exploitation by malicious actors targeting this specific application.
Attack Chain
- Attacker gains valid credentials for a standard user account in the Phpgurukul Online Birth Certificate System.
- Attacker authenticates to the application using these credentials.
- Attacker navigates to the 'certificate-form.php' endpoint within the user portal.
- Attacker intercepts or crafts a POST request to update the profile information.
- Attacker injects a malicious JavaScript payload (e.g., <script>alert(1)</script>) into the 'profile_name' parameter.
- The application stores the malicious payload in the underlying database without proper sanitization.
- A victim user (or the attacker) accesses the page where the profile name is rendered.
- The victim's browser renders the stored payload, executing the JavaScript in the user's session context.
Impact
Successful exploitation allows for arbitrary client-side code execution in the context of the user's browser. This can lead to unauthorized actions performed on behalf of the user, theft of session cookies, or the exfiltration of sensitive information displayed on the page.
Recommendation
- Implement strict input validation and sanitization for all user-supplied data, specifically for the 'profile_name' field in the 'certificate-form.php' script.
- Employ context-aware output encoding when rendering user-generated content in the browser to neutralize potential XSS payloads.
- Enforce the use of a Content Security Policy (CSP) to restrict the sources from which scripts can be executed.
- Ensure all authenticated sessions are protected by modern browser security headers to mitigate session hijacking risks.
Immediate actions
Deploy WAF rules to filter common XSS payloads in POST requests to /user/certificate-form.php.
Threat Hunt
Search web logs for POST requests to /user/certificate-form.php containing suspicious script tags.
Data: webserver access logs
Mitigations
Review application code to implement sanitization for the profile_name field.
CVE-2024-57175
Detection coverage 1
Detect CVE-2024-57175 Exploitation - Stored XSS Attempt
mediumDetects potential stored XSS attempts by monitoring web server logs for HTTP POST requests to certificate-form.php containing common XSS script tags.
Detection queries are available on the platform. Get full rules →