Arbitrary URL Injection via Link Input Field | bug bounty writeup
The registration form's LinkedIn URL field had client-side checks but no server-side validation, allowing an attacker to submit an arbitrary URL. After registration, the malicious URL was reflected on the public profile, so visitors clicking the LinkedIn link were redirected to an attacker-controlled tracking service that collected their IP address and device details.
Published on medium.com
Hiyya I am Raunak Gupta, a Security Researcher and Bug Bounty Hunter for fun and profit.
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 server trusted the client-side validation and did not re-validate the submitted URL, allowing any URL to be stored and later used as a redirect.
Impact
An attacker could redirect users to a malicious site for phishing or collect their IP address and device information via a tracking service; the text notes that the free service only reveals ISP location, not exact physical location.
What the attacker needed
A free account; victim clicks the profile link
The fix
The server should validate that the submitted URL belongs to the expected domain (e.g., linkedin.com) before storing or using it.
How it was found
- Find the registration page that requires a LinkedIn profile URL.
- Submit a valid LinkedIn link and intercept the request.
- Replace the LinkedIn URL with an IPLogger tracking URL and forward the request.
- Complete registration and visit the public profile to see the injected URL reflected.
- When a victim clicks the LinkedIn link, they are redirected to the tracking URL and their details are collected.
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 website asked for a LinkedIn profile link and checked it in the browser, but the server did not check it again. The tester changed the link to a tracking service before it reached the server, and the server accepted it. Later, anyone clicking the profile's LinkedIn link was sent to the tracking service, which recorded their IP address and device information.
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.