Sploitus

Exploit for duplicate-CVE-2025-4720-

kitploit · 2026-08-25

Exploit Code

MARKDOWN39 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-XMYRONN-DUPLICATE-CVE-2025-4720-
# cve-srms-drop-student-path-traversal (CVE-2025-4720)(重複)

# SourceCodester SRMS 1.0 における任意のファイル削除

## 説明

SourceCodester Student Result Management System(SRMS)1.0 の `drop_student.php` エンドポイントにパストラバーサルの脆弱性が存在します。

このアプリケーションは、`img` GET パラメータからユーザーが制御する入力を受け取り、検証なしにそのまま `unlink()` 関数へ渡すため、サーバー上の任意のファイルを削除できます。

* * *

## 脆弱なコード

root@kitploit:~
    
    
    $img = $_GET['img'];
    
    if ($img == "DEFAULT") {
    
    } else {
        unlink('images/students/' . $img);
    }
    

* * *

## 脆弱性の種類

  * CWE-22: パストラバーサル
  * 影響: 任意のファイル削除



* * *

## 概念実証(PoC)