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-33983 Overview
CVE-2024-33983 is a reflected Cross-Site Scripting (XSS) vulnerability affecting Janobe School Attendance Monitoring System and School Event Management System version 1.0. The flaw resides in the /AttendanceMonitoring/report/attendance_print.php endpoint, where the Attendance, attenddate, and YearLevel parameters fail to properly sanitize user-supplied input. An attacker can craft a malicious URL and deliver it to an authenticated user to execute arbitrary JavaScript in the victim's browser session. The vulnerability maps to [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Attackers can steal session cookies and hijack authenticated sessions by convincing users to click a specially crafted URL.
Affected Products
- Janobe School Attendance Monitoring System version 1.0
- Janobe School Event Management System version 1.0
- /AttendanceMonitoring/report/attendance_print.php endpoint
Discovery Timeline
- 2024-08-06 - CVE-2024-33983 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-33983
Vulnerability Analysis
The vulnerability is a reflected XSS flaw within the attendance print report functionality of Janobe's school management PHP applications. The attendance_print.php script accepts the Attendance, attenddate, and YearLevel query parameters and echoes their values into the rendered HTML response without applying output encoding or input sanitization. An attacker who crafts a URL containing JavaScript payloads in any of these parameters can trigger script execution in the victim's browser context when the link is visited.
Because the application serves authenticated administrative users, exploitation can expose session cookies, perform actions on behalf of the victim, or redirect users to attacker-controlled infrastructure. User interaction is required for exploitation, but no privileges are needed to craft the malicious URL.
Root Cause
The root cause is missing output encoding and input validation on parameters consumed by attendance_print.php. User-controlled values flow directly into the HTML response, allowing injected markup and script content to be interpreted by the browser.
Attack Vector
Exploitation occurs over the network. The attacker crafts a URL embedding a JavaScript payload within the Attendance, attenddate, or YearLevel parameter and delivers it via phishing, chat, or any channel capable of carrying a link. When the authenticated victim loads the URL, the payload executes within the vulnerable application origin and can access session cookies not protected by HttpOnly.
// Example exploitation pattern (sanitized, no verified PoC available)
// See INCIBE advisory for technical details on affected parameters:
// /AttendanceMonitoring/report/attendance_print.php?Attendance=<payload>
// /AttendanceMonitoring/report/attendance_print.php?attenddate=<payload>
// /AttendanceMonitoring/report/attendance_print.php?YearLevel=<payload>
Detection Methods for CVE-2024-33983
Indicators of Compromise
- Web server access logs containing HTTP GET requests to /AttendanceMonitoring/report/attendance_print.php with URL-encoded <script>, onerror=, javascript:, or similar payload fragments in the Attendance, attenddate, or YearLevel parameters.
- Unusual outbound requests from browser sessions of application users to unknown external hosts shortly after visiting the report page.
- Session cookie reuse from unexpected IP addresses or geolocations following interaction with crafted URLs.
Detection Strategies
- Deploy a Web Application Firewall (WAF) rule set that identifies common XSS payload patterns in query strings targeting the attendance_print.php endpoint.
- Review HTTP referrer and request logs for externally sourced links pointing to the vulnerable endpoint with suspicious parameter values.
- Correlate authentication events with session cookie usage to detect concurrent sessions originating from distinct network locations.
Monitoring Recommendations
- Enable verbose logging on the web server hosting the Janobe application and forward logs to a centralized SIEM for pattern analysis.
- Monitor Content Security Policy (CSP) violation reports if a reporting endpoint is configured.
- Alert on anomalous volumes of requests to report endpoints that include non-alphanumeric characters in parameters expected to be numeric or date-formatted.
How to Mitigate CVE-2024-33983
Immediate Actions Required
- Restrict access to the Janobe application to trusted networks or behind a VPN until a vendor fix is available.
- Deploy a WAF with XSS filtering rules in front of the vulnerable endpoint.
- Instruct administrative users to avoid clicking unsolicited links referencing the application and to log out of active sessions when not in use.
Patch Information
As of the last NVD update on 2026-06-17, no vendor patch or security advisory has been published by Janobe. Refer to the INCIBE Security Notice on Janobe Vulnerabilities for the authoritative advisory and any subsequent updates from the vendor.
Workarounds
- Apply server-side input validation and HTML entity encoding on the Attendance, attenddate, and YearLevel parameters within attendance_print.php using PHP functions such as htmlspecialchars() with ENT_QUOTES and the correct character set.
- Configure session cookies with the HttpOnly and SameSite=Strict attributes to limit cookie theft and cross-site delivery of malicious links.
- Implement a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins.
- Consider decommissioning the application if no vendor support is available and migrating to a maintained alternative.
# Example PHP sanitization pattern for affected parameters
# Apply in attendance_print.php before echoing parameter values
$attendance = htmlspecialchars($_GET['Attendance'] ?? '', ENT_QUOTES, 'UTF-8');
$attenddate = htmlspecialchars($_GET['attenddate'] ?? '', ENT_QUOTES, 'UTF-8');
$yearlevel = htmlspecialchars($_GET['YearLevel'] ?? '', ENT_QUOTES, 'UTF-8');
# Example Nginx header hardening for session and CSP protection
add_header Set-Cookie "PHPSESSID=$cookie_PHPSESSID; HttpOnly; Secure; SameSite=Strict";
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'";
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

