Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-56145 PoC — RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms

Source
Associated Vulnerability
Title: RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms (CVE-2024-56145)
Description:Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. Users of affected versions are affected by this vulnerability if their php.ini configuration has `register_argc_argv` enabled. For these users an unspecified remote code execution vector is present. Users are advised to update to version 3.9.14, 4.13.2, or 5.5.2. Users unable to upgrade should disable `register_argc_argv` to mitigate the issue.
Description
A POC lab environment for CVE-2024-56145 CraftCMS RCE.
Readme
# craft-cms-RCE-CVE-2024-56145
A POC lab environment for CVE-2024-56145 CraftCMS RCE.

## Vulnerability Description

A potential RCE vulnerability is found in craftCMS if the `register_argc_argv` option is enabled in php.ini. This is a POC lab environment where you can reproduce and exploit the bug.

The full explotation steps of the bug can be found at [Aesstnote Blog](https://www.assetnote.io/resources/research/how-an-obscure-php-footgun-led-to-rce-in-craft-cms).

## Lab Setup

You have to download this full repo rather than downloading the zip file as some files contain the application configuration. Run `sudo ./build_docker.sh` to setup the lab.
File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →