podofo 0.9.6 infinite recursion in PdfOutlineItem::PdfOutlineItem in...
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
PoC: https://bugzilla.redhat.com/show_bug.cgi?id=1607186
There is a stack overflow in the PoDoFo::PdfOutlineItem::PdfOutlineItem function of PdfOutlines.cpp:82. Remote attackers to cause a denial of service (infinite recursion and application crash) via a crafted pdf file.
I'll fix this after I've extracted PdfRecursionGuard to its own file, then use that for this fix.
As "pending" in issues with me as owner means I have done my part in fixing them, this isn't yet in that state because I could fix it with PdfRecursionGuard likely alright (but have decided to prioritize other issues). I think I'm going to fix it at some time in the future (if nobody does it before), so I'm setting this to "accepted" now and retain the owner set to me.
As proposed, moved PdfRecursionGuard to broader visibility (we could argue about the right header for it, but that can be changed) and used it in PdfOutlineItem. This also fixes #48 (where I started, hence the patch's file name).