Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-4519 Overview
CVE-2024-4519 is a reflected cross-site scripting (XSS) vulnerability in Campcodes Complete Web-Based School Management System 1.0. The flaw resides in the /view/teacher_salary_details3.php script, which fails to sanitize the month parameter before rendering it in the response. An unauthenticated remote attacker can craft a malicious URL that executes arbitrary JavaScript in a victim's browser when visited. The issue is tracked as VulDB entry VDB-263123, and a public proof-of-concept has been disclosed. The vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Remote attackers can execute arbitrary JavaScript in a victim's browser session by delivering a crafted URL containing a malicious month parameter, enabling session theft, credential harvesting, or defacement in authenticated school administrator contexts.
Affected Products
- Campcodes Complete Web-Based School Management System 1.0
- Deployments using the vulnerable /view/teacher_salary_details3.php endpoint
- Any downstream fork retaining the unsanitized month request parameter
Discovery Timeline
- 2024-05-06 - CVE-2024-4519 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-4519
Vulnerability Analysis
The vulnerability is a reflected cross-site scripting flaw in the teacher salary reporting view of Campcodes Complete Web-Based School Management System 1.0. The month GET parameter supplied to /view/teacher_salary_details3.php is echoed into the HTML response without proper output encoding or input validation. An attacker who can convince an authenticated user to click a crafted link executes JavaScript under the application's origin. Successful exploitation permits theft of session cookies, abuse of application APIs on behalf of the victim, injection of fraudulent content into salary reports, and pivot points for broader social-engineering attacks against school administrators and payroll staff.
Root Cause
The root cause is missing contextual output encoding in teacher_salary_details3.php. User-controlled data from the month query string is concatenated directly into the HTML body of the response. The application does not apply PHP escaping functions such as htmlspecialchars() or htmlentities() before rendering, nor does it enforce a strict allowlist of expected month values. This maps directly to CWE-79.
Attack Vector
Exploitation is network-based and requires user interaction. An attacker crafts a URL to the vulnerable endpoint with a payload supplied in the month parameter and delivers it via phishing email, chat, or a malicious website. When a logged-in user opens the link, the server reflects the payload into the page and the browser executes it in the application's security context. No authentication is required to construct or host the payload. The scope is changed because the injected script executes within the trusted application origin, allowing access to resources outside the attacker's initial privilege level. Technical detail is published in the GitHub proof-of-concept document and the VulDB entry 263123.
Detection Methods for CVE-2024-4519
Indicators of Compromise
- Web server access logs containing requests to /view/teacher_salary_details3.php with HTML or script metacharacters in the month parameter, such as <script>, onerror=, javascript:, or percent-encoded equivalents like %3Cscript%3E.
- Referer headers pointing to untrusted external domains preceding requests to the vulnerable endpoint.
- Anomalous outbound requests from administrator browsers to attacker-controlled hosts shortly after visiting salary report pages.
Detection Strategies
- Deploy a web application firewall (WAF) rule to flag or block requests to teacher_salary_details3.php where the month parameter contains angle brackets, event handler attributes, or script keywords.
- Enable server-side logging of full query strings and perform regular pattern searches for XSS payload signatures across all PHP endpoints.
- Correlate authenticated session activity with anomalous DOM-level actions, such as unexpected form submissions, cookie reads, or new script tag injections.
Monitoring Recommendations
- Monitor web proxy and endpoint telemetry for administrator browsers establishing connections to unfamiliar external domains immediately after accessing the school management system.
- Alert on session cookies for the application being transmitted outside the organization's expected network boundary.
- Track login anomalies that follow suspicious URL click events referencing the vulnerable path.
How to Mitigate CVE-2024-4519
Immediate Actions Required
- Restrict external access to /view/teacher_salary_details3.php through network-level controls or application-level IP allowlisting until a fix is applied.
- Apply a WAF signature that blocks XSS metacharacters in the month parameter for the affected endpoint.
- Instruct administrators and payroll staff to avoid clicking unverified links referencing the school management system.
- Rotate active administrator session cookies and credentials if suspicious access patterns are observed.
Patch Information
No vendor advisory or official patch has been published in the enriched CVE data at the time of writing. Operators should contact Campcodes for remediation guidance, monitor the VulDB entry for CVE-2024-4519 for updates, and plan to apply contextual output encoding (htmlspecialchars($month, ENT_QUOTES, 'UTF-8')) and strict server-side input validation on the month parameter as a source-level fix.
Workarounds
- Implement a reverse-proxy rewrite rule that strips or rejects requests where the month parameter contains non-alphanumeric characters.
- Enforce a strict Content Security Policy (CSP) such as default-src 'self'; script-src 'self' to limit execution of reflected inline scripts.
- Set the HttpOnly and Secure flags on application session cookies to reduce the impact of successful script execution.
- Where feasible, take the vulnerable salary reporting module offline until an upstream patch is validated.
# Example NGINX workaround: reject non-alphanumeric values for the 'month' parameter
location = /view/teacher_salary_details3.php {
if ($arg_month ~* "[^A-Za-z0-9]") {
return 400;
}
add_header Content-Security-Policy "default-src 'self'; script-src 'self'" always;
add_header X-XSS-Protection "1; mode=block" always;
proxy_pass http://backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

