Skip to content
Open redirect Disclosed report Beginner

Open Redirect on the nl.wordpress.net

The server responded to a request for a path starting with '@' by issuing a redirect whose Location header contained the hostname followed by '@' and the requested domain, without a trailing slash. An attacker could craft a link on the legitimate nl.wordpress.net domain that redirected victims to an attacker-controlled site, potentially used for phishing.

sp1d3rs Follow

Originally disclosed on HackerOne

  • Triaged in 22 hours
  • Fixed in 22 hours
  • Paid in 14 days
  • Disclosed after 28 days

##Description Hello. I discovered an Open redirect vulnerability on the nl.wordpress.org.

##Root cause The 301 Redirect contains full hostname, followed with @ without trailing slash, when using:

GET /@google.com HTTP/1.1
Host: nl.wordpress.net
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Upgrade-Insecure-Requests: 1

HTTP/1.1 301 Moved Permanently
Date: Thu, 25 Jan 2018 17:26:07 GMT
Server: Apache
Location: http://[email protected]
Content-Length: 242
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

##POC (Google Chrome) http://nl.wordpress.net/@google.com

##Suggested fix Appending the trailing slash after location hostname should fix the issue. e.g.

Location: http://[email protected]

=>

Location: http://nl.wordpress.org/@google.com

Impact

The attacker can redirect the victim to the malicious site using legit *.wordpress.net subdomain name, which can be the copy of the real site, asking for the user credentials.

The original report as published on HackerOne, by sp1d3rs. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Impact

An attacker could redirect a victim to a malicious site using a legitimate *.wordpress.net subdomain, which could be a copy of the real site asking for credentials.

What the attacker needed

Victim clicks a crafted link

The fix

The redirect should be fixed by appending a trailing slash after the hostname so that the path is not interpreted as userinfo.

How it was found

  1. Send a GET request to /@google.com with Host: nl.wordpress.net.
  2. Observe the 301 response with a Location header containing the hostname followed by '@google.com'.
  3. In a browser, visit http://nl.wordpress.net/@google.com to be redirected to google.com.

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 redirect puts the new address in a Location header. Here the server put the requested path after its own hostname, so a path starting with '@' produced an address with '@' in it, which can send the browser elsewhere.

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.

More by sp1d3rs

View all

62 more disclosed reports, best first.

More from WordPress

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.