[M-5] SOAP response parsed with default xmerl options — internal entity expansion not disabled #17
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
NationalIDClientparses Trustgate responses with:xmerl_scan.string(..., quiet: true)— no DTD/entity hardening; xmerl expands internal entities by default (billion-laughs style).Evidence
lib/mdid_ws/cert_management/national_id_client.ex:226Impact
A compromised/MITM'd Trustgate (or an SSRF-adjacent redirect) could feed crafted XML for resource exhaustion.
Fix
Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).