Pentest Chronicles
The following response demonstrates the server's acceptance of the malicious payload and initiation of PDF generation:
Then I downloaded the PDF file generated by the malicious payload:
Below is the extracted Python script (e.g., ex.py) used during the analysis:
Now I extract an attachment from a PDF document: Using the ex.py script, the attachment is extracted from the PDF:
After running the script, the following file appears in the directory:
The contents of the extracted file are displayed, revealing very sensitive environment variables:
This is not all! Then I downloaded second PDF file containing another malicious payload:
As you can see the contents of the extracted /etc/passwd file are displayed, confirming unauthorized file access:
Root Cause This vulnerability stems from the default configuration of WeasyPrint, which allows unrestricted access to local and external files. Without stringent input validation and output sanitization, the software effectively serves as a bridge for unauthorized data extraction.
In today's world, ensuring the security of our accounts is more crucial than ever. Just as keys protect the doors to our homes, passwords serve as the first line of defense for our data and assets. It's easy to assume that technical individuals, such as developers and IT professionals, always use strong, unique passwords to keep ...

SOCMINT is the process of gathering and analyzing the information collected from various social networks, channels and communication groups in order to track down an object, gather as much partial data as possible, and potentially to understand its operation. All this in order to analyze the collected information and to achieve that goal by making …

PyScript – or rather Python in your browser + what can be done with it? A few days ago, the Anaconda project announced the PyScript framework, which allows Python code to be executed directly in the browser. Additionally, it also covers its integration with HTML and JS code. An execution of the Python code in …