Goal Reached Thanks to every supporter โ€” we hit 100%!

Goal: 1000 CNY ยท Raised: 1325 CNY

100%

CVE-2025-24514 PoC โ€” ingress-nginx controller - configuration injection via unsanitized auth-url annotation

Source
Associated Vulnerability
Title:ingress-nginx controller - configuration injection via unsanitized auth-url annotation (CVE-2025-24514)
Description:A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingress annotation can be used to inject configuration into nginx. This can lead to arbitrary code execution in the context of the ingress-nginx controller, and disclosure of Secrets accessible to the controller. (Note that in the default installation, the controller can access all Secrets cluster-wide.)
Readme
# ๐Ÿ”ฅ CVE-2025-24514 ์›๊ฒฉ ์ทจ์•ฝ์  ์ ๊ฒ€ PoC

์ด ์Šคํฌ๋ฆฝํŠธ๋Š” CVE-2025-24514 ์ทจ์•ฝ์ (ingress-nginx์˜ `auth-url` ์ฃผ์ž…์„ ํ†ตํ•œ NGINX ์„ค์ • ์กฐ์ž‘ ๋ฐ RCE ๊ฐ€๋Šฅ์„ฑ)์— ๋Œ€ํ•ด **์›๊ฒฉ์œผ๋กœ ์ ๊ฒ€**ํ•  ์ˆ˜ ์žˆ๋Š” Python ๊ธฐ๋ฐ˜ PoC์ž…๋‹ˆ๋‹ค.

---

## ๐Ÿง  ์ทจ์•ฝ์  ๊ฐœ์š”

- **CVE-2025-24514**๋Š” Kubernetes Ingress Controller ์ค‘ `ingress-nginx`์—์„œ `nginx.ingress.kubernetes.io/auth-url` ์–ด๋…ธํ…Œ์ด์…˜์„ ํ†ตํ•ด **NGINX ์„ค์ •์ด ์˜๋„์น˜ ์•Š๊ฒŒ ์ฃผ์ž…**๋˜๋Š” ์ทจ์•ฝ์ ์ž…๋‹ˆ๋‹ค.
- ์•…์˜์ ์ธ ๊ฒฝ๋กœ(`/;error_log /dev/stdout;`)๋ฅผ ํฌํ•จํ•˜๋ฉด NGINX ์„ค์ • ํŒŒ์ผ์ด ๋ณ€์กฐ๋˜์–ด **์ž„์˜ ๋ช…๋ น ์‹คํ–‰ ๋˜๋Š” ์ •๋ณด ์œ ์ถœ**์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

---

## โœ… PoC ์ฃผ์š” ๊ธฐ๋Šฅ

- ๋Œ€์ƒ ์„œ๋ฒ„์— HTTP ์š”์ฒญ์„ ์ „์†กํ•˜์—ฌ `auth-url` ์„ค์ • ์ฃผ์ž… ์‹œ๋„
- ์‘๋‹ต ๋‚ด `error_log`, `auth-url` ๋ฌธ์ž์—ด ์กด์žฌ ์—ฌ๋ถ€๋กœ **์ทจ์•ฝ ์—ฌ๋ถ€ ํŒ๋ณ„**
- Windows CMD, PowerShell, Linux/Bash ํ˜ธํ™˜
- `colorama`๋ฅผ ํ†ตํ•œ ์ƒ‰์ƒ ์ถœ๋ ฅ ์ง€์›

---

## ๐Ÿ“ฆ ์„ค์น˜ ๋ฐ ์‹คํ–‰ ๋ฐฉ๋ฒ•

### 1. Python ์„ค์น˜

Python 3.x ํ™˜๊ฒฝ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

### 2. ์˜์กด ํŒจํ‚ค์ง€ ์„ค์น˜

bash
pip install requests colorama```

### 3. PoC ์‹คํ–‰
bash
python cve_2025_24514_remote_poc.py

---

## ๐Ÿ–ฅ๏ธ ์‹คํ–‰ ์˜ˆ์‹œ
[=] CVE-2025-24514 ์›๊ฒฉ ์ทจ์•ฝ์  ์ ๊ฒ€ PoC ์‹œ์ž‘ =

[?] ๋Œ€์ƒ ์„œ๋ฒ„ URL/IP๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š” (์˜ˆ: http://192.168.0.0): http://192.168.0.0
[+] ๋Œ€์ƒ์— ์•…์„ฑ ์š”์ฒญ ์ „์†ก ์ค‘: http://192.168.0.0
[+] HTTP ์‘๋‹ต ์ฝ”๋“œ: 200
[+] ์‘๋‹ต ๋‚ด์šฉ (์•ž 300์ž):
<html><body>Welcome...</body></html>
[!!!] ์ทจ์•ฝ ๊ฐ€๋Šฅ์„ฑ์ด ๋งค์šฐ ๋†’์Œ: NGINX ์„ค์ • ๋…ธ์ถœ ์˜์‹ฌ๋จ

---

## ๐Ÿ” ์ทจ์•ฝ ์กฐ๊ฑด
๋ณธ PoC๊ฐ€ ์ž‘๋™ํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋‹ค์Œ ์กฐ๊ฑด ์ค‘ ์ผ๋ถ€๊ฐ€ ๋งŒ์กฑ๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค:

๋Œ€์ƒ ์„œ๋ฒ„๊ฐ€ Ingress-NGINX ์ปจํŠธ๋กค๋Ÿฌ๋ฅผ ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ์ƒํƒœ๋กœ ์šด์˜ ์ค‘

auth-url ์–ด๋…ธํ…Œ์ด์…˜์„ ํ•„ํ„ฐ๋ง ์—†์ด ์ฒ˜๋ฆฌํ•˜๊ณ  ์žˆ์Œ

์š”์ฒญ Host ํ—ค๋”์— ๋”ฐ๋ฅธ ๋ฆฌ๋ฒ„์Šค ํ”„๋ก์‹œ ๋™์ž‘์ด ์ ์šฉ๋จ

---

## โš ๏ธ ์ฃผ์˜์‚ฌํ•ญ
์ด ์Šคํฌ๋ฆฝํŠธ๋Š” ๋ณด์•ˆ ์ ๊ฒ€ ๋ฐ ํ…Œ์ŠคํŠธ ๋ชฉ์ ์œผ๋กœ๋งŒ ์‚ฌ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๋ฌด๋‹จ ์ ๊ฒ€์€ ๋ฒ•์  ์ฑ…์ž„์„ ์ดˆ๋ž˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ทจ์•ฝํ•˜๋‹ค๊ณ  ํŒ๋‹จ๋œ ์„œ๋ฒ„๋Š” ์ฆ‰์‹œ ๋ณด์•ˆ ํŒจ์น˜๋ฅผ ์ ์šฉํ•˜๊ฑฐ๋‚˜ ์–ด๋…ธํ…Œ์ด์…˜ ํ•„ํ„ฐ๋ง์„ ์ ์šฉํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

---

## ๐Ÿ”ง ๋Œ€์‘ ๋ฐฉ์•ˆ
ingress-nginx ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์—…๋ฐ์ดํŠธ

auth-url, auth-signin ์–ด๋…ธํ…Œ์ด์…˜์— ๋Œ€ํ•œ ์‚ฌ์šฉ์ž ์ž…๋ ฅ ๊ฒ€์ฆ ์ ์šฉ

์™ธ๋ถ€ ์š”์ฒญ์—์„œ ์„ค์ • ์ฃผ์ž… ๊ฐ€๋Šฅํ•œ URI ํŒจํ„ด ์ฐจ๋‹จ

---

## ๐Ÿ“„ ์ฐธ๊ณ ์ž๋ฃŒ
Nginx Ingress Controller GitHub

CVE ์ƒ์„ธ์ •๋ณด - CVE-2025-24514

Ingress-NGINX ์ทจ์•ฝ์  ๋ณด์•ˆ ๊ถŒ๊ณ 

---

## ๐Ÿ“ซ ๋ฌธ์˜
๋ฒ„๊ทธ ์‹ ๊ณ ๋‚˜ ์ œ์•ˆ์‚ฌํ•ญ์€ email ๋˜๋Š” PR๋กœ ๋‚จ๊ฒจ์ฃผ์„ธ์š”.

---

## ๐Ÿ“ License
This project is licensed under the MIT License - see the LICENSE file for details. Copyright (c) 2025 KimJuhyeong95
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 โ†’