From Search to Hall of Fame: Responsible Disclosure of a Grafana
Grafana's static file handler issued a 302 redirect to a path with a trailing slash without validating the input path, allowing an attacker to craft a URL that redirects users to an attacker-controlled site. The author reported this to SURF, which fixed the issue and added the author to its Hall of Fame.
One lazy evening, with a strong cup of coffee in hand ☕, I decided to fire up my system for what I assumed would be a routine FOFA search — nothing fancy, just the usual scan-and-scroll drill. But as fate would have it, that casual search ended up taking a sharp turn toward something much more exciting: a spot in the…
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 static file handler appended a trailing slash and redirected without validating or sanitising the requested path, allowing path manipulation to change the redirect destination.
Impact
The text claims the redirect could be used for phishing or social engineering and could potentially be leveraged for XSS and SSRF, possibly leading to account takeover, though no such exploitation is demonstrated.
What the attacker needed
Victim clicks a crafted link; target runs a vulnerable Grafana version
The fix
The text states that SURF addressed and resolved the problem after the report.
How it was found
- Search for Grafana instances using a FOFA query filtered by country.
- Check each organisation for a vulnerability disclosure programme or bug bounty policy.
- Identify a target with an active VDP, such as SURF.
- Access a crafted URL under the public path containing encoded path traversal and an external domain.
- Observe the server redirect the browser to the external attacker-controlled site.
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.
An open redirect is when a website takes a user to another site based on a link, without checking that the destination is safe. Here, Grafana added a slash to a folder path and redirected, but an attacker could put a different website in the path so users ended up on a malicious page. This can be used for phishing because the link starts with the real site's address.
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.