Skip to content
Threat Feed
low advisory

Stored XSS Vulnerability in Phpgurukul Teachers Record Management System

A stored cross-site scripting (XSS) vulnerability in Phpgurukul Teachers Record Management System version 1.0 allows authenticated administrators to execute arbitrary JavaScript in the context of other users.

CVE search metadata

CVE search record: CVE-2022-41445. Severity: medium. CVSS: 4.8. EPSS: 1.01%. KEV: no. Product: Teachers Record Management System (1.0). Brief: Stored XSS Vulnerability in Phpgurukul Teachers Record Management System. Brief link: https://feed.craftedsignal.io/briefs/2026-08-cve-2022-41445/

Phpgurukul Teachers Record Management System version 1.0 contains a stored cross-site scripting (XSS) vulnerability identified as CVE-2022-41445. The vulnerability resides in the 'Add Subject' page of the application, which leverages the CodeIgniter framework. An authenticated attacker with administrative privileges can inject malicious JavaScript payloads into subject entry fields. When a teacher user subsequently accesses the profile details page, the stored script executes in the victim's browser session. This vulnerability poses a risk of session hijacking, unauthorized actions performed on behalf of the teacher, or information theft within the administrative and teacher interfaces. The availability of proof-of-concept exploit material increases the risk of exploitation for organizations still running this version.

Attack Chain

  1. Attacker authenticates to the Teachers Record Management System using valid administrative credentials.
  2. Attacker navigates to the 'Add Subject' administration page.
  3. Attacker inputs a crafted JavaScript payload into the subject title or related input fields.
  4. Attacker submits the form, causing the malicious script to be saved into the application's backend database.
  5. A teacher user logs into the application and navigates to their profile view or a page listing subject details.
  6. The application retrieves the stored malicious payload from the database and renders it unsanitized in the teacher's browser.
  7. The browser executes the malicious JavaScript, potentially exfiltrating session cookies or performing unauthorized actions.

Impact

Successful exploitation allows for the execution of unauthorized JavaScript in the context of a teacher's browser session. This can lead to the compromise of teacher accounts, unauthorized data access, and potential escalation of impact within the system's administrative environment. The severity is CVSS 4.8, reflecting the requirement for administrative privileges and user interaction.

Recommendation

  • Ensure all users of the Phpgurukul Teachers Record Management System upgrade to the latest version if available, or apply vendor-provided patches.
  • Implement strict input validation and output encoding for all user-controllable fields, specifically targeting the 'Add Subject' and profile view modules in the application source code.
  • Monitor administrative account activity for suspicious subject creation or modifications.
  • Restrict access to administrative modules to verified, high-trust users only.

Immediate actions

Deploy the provided Sigma rule to monitor for XSS payloads directed at subject management endpoints

Detection Engineering 48h

Threat Hunt

Search logs for POST requests to /add-subject containing HTML/script tags

T1190 high high confidence hunt now

Data: Web server access logs

Detection coverage 1

Detects CVE-2022-41445 Exploitation - Stored XSS in Add Subject Endpoint

medium

Detects potential stored XSS injection attempts via POST requests to the subject management endpoint, characterized by script-like content in parameters.

sigma tactics: initial_access techniques: T1059.007 sources: webserver

Detection queries are available on the platform. Get full rules →