AdminPanel 4.0 CSRF File Deletion / Setup-Mode Reset — CVE-2026-30498
by Mehdi Ben Hamou · 2026-07-05
- Severity
- High
- CVE
- CVE-2026-30498 (reserved by MITRE)
- Category
- web
- Affected product
- AdminPanel 4.0 (archived project)
- Affected versions
- 4.0 and prior
- Disclosed
- 2026-07-05
- Patch status
- unpatched
Archive entry
intelseclab/poc-archiveMetadata
| Field | Value |
|---|---|
| Date Added | 2026-07-05 |
| Last Updated | 2026-03 |
| Author / Researcher | Mehdi Ben Hamou |
| CVE / Advisory | CVE-2026-30498 (reserved by MITRE) |
| Category | web |
| Severity | High |
| CVSS Score | Not specified in source |
| Status | PoC |
| Tags | csrf, php, file-deletion, auth-bypass, setup-mode, get-request, adminpanel |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | AdminPanel 4.0 (archived project) |
| Versions Affected | 4.0 and prior |
| Language / Platform | PHP |
| Authentication Required | Yes (victim must have an active authenticated session; attacker needs none) |
| Network Access Required | Yes |
Summary
AdminPanel 4.0’s delete.php endpoint performs a sensitive file-deletion action (deleting verifyPanel.php) via a simple GET request, with no CSRF token, no Origin/Referer validation, and no confirmation of user intent. An attacker can host a page that auto-submits a forged request to this endpoint; if an authenticated administrator visits the page, their browser automatically attaches session cookies, causing verifyPanel.php to be deleted. Because verifyPanel.php is used to gate whether the application has completed setup, its removal forces the application back into an unauthenticated “setup mode,” effectively bypassing authentication and allowing full system reinitialization by anyone who reaches the app afterward.
Vulnerability Details
Root Cause
Missing CSRF protections (no anti-CSRF token, no Origin/Referer checks) on a state-changing, sensitive GET endpoint (delete.php) that relies solely on ambient session cookies for authorization.
Attack Vector
- Attacker hosts a malicious page (
evil.html) containing an auto-submitting form targetinghttp://<target>/delete.php?file=verifyPanel.php. - Attacker lures an authenticated AdminPanel user/administrator into visiting the malicious page.
- The victim’s browser automatically includes their AdminPanel session cookie with the forged request.
delete.phpdeletesverifyPanel.phpwithout validating the request’s origin or intent, forcing the application into setup mode.
Impact
Deletion of a security-gating file leading to application-wide authentication bypass and the ability to fully reinitialize the system’s configuration (effective full compromise of the AdminPanel instance).
Environment / Lab Setup
Target: AdminPanel 4.0 running via `php -S localhost:8080`
Attacker: Any web browser to host/serve attacker/evil.html
Proof of Concept
PoC Script
See
attacker/evil.htmlandvictim/(index.php,delete.php,reset.php,panel/dashboard.php) in this folder.
| |
evil.html auto-submits a hidden GET form to delete.php?file=verifyPanel.php on load; once a logged-in victim visits it, their session cookie authorizes the deletion, forcing the target application into setup mode.
Detection & Indicators of Compromise
Signs of compromise:
- Unexpected disappearance of
verifyPanel.phpand the application reverting to a setup/installation screen delete.phprequests with cross-site Referer/Origin headers- Administrator session activity immediately preceding an unplanned application reset
Remediation
| Action | Detail |
|---|---|
| Primary fix | No vendor patch confirmed as of 2026-07-05 (archived project) — apply victim/delete_fixed.php-style CSRF-token validation, or migrate off this codebase |
| Interim mitigation | Require POST + CSRF token + Origin/Referer validation for all destructive actions; restrict delete.php to authenticated admin sessions with explicit confirmation |
References
Notes
Mirrored from https://github.com/Mehdi-Ben-Hamou/CVE-2026-30498 on 2026-07-05.