DEV Community

Ioneyrezende
Ioneyrezende

Posted on

SOAP services signed by embedded certificates need an external trust inventory

SOAP services signed by embedded certificates need an external trust inventory

SOAP services often expose a WSDL endpoint, a web service URL, or a generic XML response. The security property that matters may be invisible at the HTTP layer: whether the verifier trusts a certificate from the message or from a separate trust store.

I ran three count-only observations on November 30, 2026, with sub_type=all, page 1, and page size 1. app="soapbar" returned 0, title="soapbar" returned 3, and http.body="soapbar" returned 130.

The product strings can appear in package documentation, a SOAP-related page, or an application error. They do not show whether a service uses the affected Python function or how it anchors trust.

The trust-anchor mistake

The reviewed soapbar advisory describes verify_envelope_bsp. It read the X.509 certificate from an untrusted wsse:BinarySecurityToken, checked only its validity dates, and verified the signature with that same certificate. The code performed no CA-chain validation, issuer or subject allowlist, or certificate pinning.

A successful verification therefore proved that the message was signed by the key embedded in the message. It did not prove that a trusted party signed it. An attacker could mint a certificate, sign a forged envelope, embed the certificate, and pass the verification path.

The function now requires a caller-supplied trust anchor, either a pinned certificate list or trusted CA certificates. Without one, it fails closed.

Find the application code path

Inventory Python services that process WS-Security or BSP envelopes. Search for verify_envelope_bsp and verify_envelope. Identify the certificates configured by the application, the source of the trust store, and the fallback behavior after a verification failure.

Confirm that successful verification maps to an authenticated identity only after trust anchoring. A signature check with no trust anchor is a cryptographic parser test, not an authentication decision.

Use the network evidence carefully

ZoomEye can find pages and endpoints that mention soapbar, SOAP, or related web-service terms. It cannot read the wsse trust configuration. The 130 body matches are a lead source for an organization that already knows it runs SOAP integrations.

Store the exact dork and collection time. Compare a match with the application inventory and the certificate trust policy. Do not submit a forged envelope to a third-party endpoint to validate the issue.

Mature SOAP services often sit behind API gateways, but message-level signatures may still be handled inside the application. The review should include both the network endpoint and the code that decides which certificate is trusted.

References

Top comments (0)