Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML: fuzzing stack overflow #4629

Closed
obiltschnig opened this issue Aug 8, 2024 · 1 comment
Closed

XML: fuzzing stack overflow #4629

obiltschnig opened this issue Aug 8, 2024 · 1 comment

Comments

@obiltschnig
Copy link
Member

Status: New
Owner: ----
CC: a...@adalogics.com, guen...@pocoproject.org, a...@pocoproject.org
Labels: Restrict-View-Commit ClusterFuzz Reproducible Stability-Memory-MemorySanitizer Engine-libfuzzer OS-Linux Proj-poco Reported-2024-08-06
Type: Bug

New issue 70994 by ClusterFuzz-External: poco:xml_parser_fuzzer: Stack-overflow in Poco::XML::AbstractContainerNode::~AbstractContainerNode
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=70994

Detailed Report: https://oss-fuzz.com/testcase?key=6577818702512128

Project: poco
Fuzzing Engine: libFuzzer
Fuzz Target: xml_parser_fuzzer
Job Type: libfuzzer_msan_poco
Platform Id: linux

Crash Type: Stack-overflow
Crash Address: 0x7ffc69db5f88
Crash State:
Poco::XML::AbstractContainerNode::~AbstractContainerNode
Poco::XML::Element::~Element

Sanitizer: memory (MSAN)

Regressed: https://oss-fuzz.com/revisions?job=libfuzzer_msan_poco&range=202408050612:202408060606

Reproducer Testcase: https://oss-fuzz.com/download?testcase_id=6577818702512128

@obiltschnig obiltschnig added this to the Release 1.13.4 milestone Aug 8, 2024
@obiltschnig obiltschnig changed the title XML: fuzzing crash XML: fuzzing stack overflow Aug 8, 2024
@obiltschnig
Copy link
Member Author

Need to limit the maximum depth of the DOM to prevent this.

@obiltschnig obiltschnig self-assigned this Aug 8, 2024
@obiltschnig obiltschnig modified the milestones: Release 1.13.4, Release 1.14.0 Sep 25, 2024
@matejk matejk closed this as completed Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants