(0Day) pdfforge PDF Architect CBZ File Parsing Directory Traversal Remote Code Execution Vulnerability
PDF Architect does not properly validate a user-supplied path when parsing CBZ files, so a crafted archive can write files outside the intended directory. An attacker could use this to run arbitrary code as the current user if the victim opens a malicious file or visits a malicious page.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of pdfforge PDF Architect. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the CBZ extraction routine joins archive entry names to a destination path without checking for traversal sequences or absolute paths.
Impact
An attacker could execute arbitrary code in the context of the current user, though the victim must first open a malicious file or visit a malicious page.
What the attacker needed
Victim opens a crafted CBZ file; or victim visits a malicious page; no vendor fix available
The fix
The vendor did not release a fix before publication; the advisory says the only mitigation is to restrict interaction with the product.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A CBZ file is parsed by the program, which trusts the paths inside, so a crafted name can place a file elsewhere on disk, potentially leading to code execution.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.