Use this unique way to find broken link hijacking bugs.
A PDF hosted on the target site contained a link to a Twitter username that did not exist, so the author registered that username and the link then pointed to their own account. This is a broken link hijacking issue where an attacker could control where the link leads.
infosecwriteups.com
Published on infosecwriteups.com
Finding more subdomains Part 3 Learn how to find some hidden subdomainsinfosecwriteups.com
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the PDF contained a link to an external social media account that had been deleted or never registered, and the site did not check that the link still pointed to a legitimate owner.
Impact
An attacker could take over the external link so that visitors clicking it from the PDF are directed to an account the attacker controls, which could be used for phishing or misinformation.
What the attacker needed
Target hosts PDFs with external links; The linked account is unregistered
How it was found
- Enumerate subdomains and collect historical URLs with waybackurls, gau, and waymore.
- Filter the collected URLs to keep only those ending in .pdf.
- Open the PDF files and look for external links, such as social media profiles.
- Find a link to a Twitter username that does not exist.
- Register a Twitter account with that same username.
- Click the link again and see that it now leads to the newly created account.
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 write-up has not been written yet. The Original tab links to the source.
A broken link hijacking bug happens when a website links to an external account or page that no longer exists. If someone else registers that account, they can control what visitors see when they click the link. Here, a PDF on the site linked to a Twitter username that was free, so the author took it over.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.