MDPDF2 TryHackMe
1) Scanning using nmap
As usual, we will use nmap command to see if there is any open services.
And we find the http service is open.
So when you put that into the input editor, the PDF generator will try to render the iframe.
In example below, I try to put "test" to see if there is any interesting outcome, but unfrotunately no.
Markdown (.md) supports HTML.
What is markdown (.md)? as the clue given for this challenge?
A Markdown file is a simple text file that uses an easy-to-read, easy-to-write markup language called Markdown.
Markdown is a lightweight markup language used to create the like of:
- documentation
- README files
- notes
- blog posts
- formatted text for websites
This means anything you write inside the editor may be rendered as HTML inside the PDF.
Most PDF rendering libraries (like wkhtmltopdf, Puppeteer, headless Chrome) load HTML the same way a web browser does.
That means:
- They load iframe URLs
- They load image URLs
- They load CSS <link> URLs
- They load <object> URLs
The simplest HTML elements that make HTTP requests are:
<img src="...">
<iframe src="...">
<object data="...">
<video src="...">
<script src="..."> (unless blocked)
So you test what the PDF generator supports.
Comments
Post a Comment