CVE-2025-70141
Improper Access Control in SourceCodester Customer Support System Allows Unauthorized Data Modification
Publication date: 2026-02-18
Last updated on: 2026-02-23
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| oretnom23 | customer_support_system | 1.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-862 | The product does not perform an authorization check when an actor attempts to access a resource or perform an action. |
| CWE-306 | The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
[{'type': 'paragraph', 'content': 'CVE-2025-70141 is an incorrect access control vulnerability in the Customer Support System 1.0, specifically in the ajax.php dispatcher.'}, {'type': 'paragraph', 'content': 'The vulnerability occurs because ajax.php routes requests based solely on the "action" parameter and calls privileged administrative methods in admin_class.php without enforcing any authentication or authorization.'}, {'type': 'paragraph', 'content': 'This means an unauthenticated remote attacker can invoke sensitive administrative functions such as creating customers, deleting users (including admin accounts), and modifying or deleting tickets, departments, and comments.'}, {'type': 'paragraph', 'content': 'The root cause is missing authentication and authorization checks before executing critical functions, making it a classic case of CWE-306 (Missing Authentication for Critical Function) and CWE-862 (Missing Authorization).'}] [1]
How can this vulnerability impact me? :
This vulnerability allows an unauthenticated attacker to perform critical state-changing operations remotely.
- Create arbitrary customer and staff accounts.
- Delete users, including administrative accounts, potentially locking out legitimate administrators.
- Modify or delete tickets, departments, comments, and other application records.
The impact includes unauthorized data modification, loss of data integrity, and potential denial of service by removing critical user accounts or data.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
[{'type': 'paragraph', 'content': 'This vulnerability can be detected by monitoring HTTP POST requests to the vulnerable endpoint customer_support/ajax.php that include specific action parameters without authentication.'}, {'type': 'list_item', 'content': 'Look for unauthenticated POST requests with parameters such as action=save_customer, action=delete_user, action=delete_ticket, etc.'}, {'type': 'list_item', 'content': 'Use network traffic inspection tools (e.g., tcpdump, Wireshark) to capture and analyze HTTP requests targeting ajax.php.'}, {'type': 'list_item', 'content': "Example command to capture HTTP POST requests to ajax.php using tcpdump: tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | grep 'POST /customer_support/ajax.php?action='"}, {'type': 'list_item', 'content': 'Check web server logs for unauthenticated access attempts to ajax.php with suspicious action parameters.'}] [1]
What immediate steps should I take to mitigate this vulnerability?
[{'type': 'paragraph', 'content': 'Immediate mitigation steps include enforcing authentication and authorization checks in ajax.php to prevent unauthenticated access to administrative functions.'}, {'type': 'list_item', 'content': "Modify ajax.php to verify session login status (e.g., check $_SESSION['login_id']) at the start and return HTTP 403 if the user is not authenticated."}, {'type': 'list_item', 'content': 'Implement per-action authorization checks to restrict sensitive actions such as deleting users or departments to only authorized admin users.'}, {'type': 'list_item', 'content': 'Add ownership checks to ensure users can only modify their own tickets and comments.'}, {'type': 'list_item', 'content': 'Once authentication is enforced, introduce CSRF protections to prevent cross-site request forgery on state-changing actions.'}] [1]