Skip to content

Harden Aviator FPR XML parsing against XXE - #1123

Merged
rsenden merged 4 commits into
fortify:feat/v3.x/aviator/26.4from
kireetivar:p/kireetivar/xxe
Oct 5, 2026
Merged

rsenden merged 4 commits into
fortify:feat/v3.x/aviator/26.4from
kireetivar:p/kireetivar/xxe

Conversation

@kireetivar

@kireetivar kireetivar commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Secure the correlation XML parsing against XXE while still allowing a real FPR DOCTYPE. SastFprCorrelationRecorder.parseXml only set namespaceAware; it now blocks external DTDs and entities, and writeXml is locked down the same way. disallow-doctype-decl stays off so audit.xml still parses.

src-archive/index.xml is already handled in FprHandle (entities and internal subsets rejected; only the Fortify properties DOCTYPE is allowed). src-xrefdata/index.xml is not parsed. Added tests that a SYSTEM entity is not resolved and a harmless DOCTYPE still parses.

Also updated the --preview option description.

@kireetivar kireetivar self-assigned this Oct 1, 2026
@kireetivar
kireetivar requested a review from rsenden October 1, 2026 10:46
@kireetivar
kireetivar marked this pull request as ready for review October 1, 2026 10:46
@rsenden
rsenden merged commit 5e69800 into fortify:feat/v3.x/aviator/26.4 Oct 5, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants