[ |
| **Impact** | The exposed Apache-SOAP RPC Router servlet accepted crafted SOAP requests with external entity declarations. A remote attacker could read local files through the XXE. |
| **Vector** | remote SOAP request to /affwebservices/router/session |
| **Trigger** | DOCTYPE with an external entity declaration |
# pre-fix (model from Broadcom article 460506)
attacker input accepted without the required protection
# derived from observed behaviour, not copied from a vendor fix
The SOAP parser resolved external entities declared in the request. The fix disables that resolution.
| `sm-vuln` | `cve-2017-20291:vuln` | vulnerable behaviour present |
| `sm-guard` | `cve-2017-20291:guard` | fixed behaviour |
| `poc` | `cve-2017-20291-poc:local` | stdlib-only Python driver |
Both sides are Python 3.12 images. The vulnerable behaviour is modelled from
Broadcom article 460506; the guard is derived from the lab observation that
the impact is reproduced. The fixed build applies the published upstream change.
The lab uses the isolated `cve20291lab` network and bounded containers.
`poc/poc.py` takes a mode and an optional `--host=...`:
| `check` | exit 1 when the entity is resolved, 0 when the declaration is refused |
| `exploit` | runs the full chain and reports the observed impact |
| `mitigation` | explains the derived guard |
A standalone exploit ships at `exploit/exploit.py`:
python3 exploit/exploit.py --host=sm-vuln
It exits 1 on a confirmed finding and 0 on a guarded target.
| | `sm-vuln` (pre-fix) | `sm-guard` (derived) |
| crafted request | **file read** | **refused** |
Captured runs are in `evidence/check-*-run.txt`, `evidence/exploit-*-run.txt`,
`evidence/probe-*-run.txt`, `evidence/mitigation-*-run.txt`,
`evidence/exploit-standalone-fixed-run.txt`, `evidence/versions.txt` and
Podman or Docker with the `cve20291lab` network. No production system is
involved. Real-world exploitation needs an affected installation.
## 7. Additional findings (0-day sweep on the guarded build)
Ordinary requests still succeed on the fixed build.
run-lab.sh environment driver (build / up / sweep / down)
Makefile convenience targets
poc/poc.py the PoC (check / exploit / probe / mitigation)
lab/harness-*.py vulnerable behaviour / derived guard
lab/service.py HTTP wrapper (POST /check)
evidence/ captured runs on both sides
TRACKING.md working record, excluded from the repo
* CVE record —
* Upstream advisory Broadcom article 460506 —
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
