Vulnerabilities in Homepage Dashboard
Homepage, an unauthenticated dashboard that proxies privileged requests to integrated services, let any visitor abuse its proxy endpoint to reach internal APIs of those services. This exposed sensitive data and privileged API keys, and with a leaked Jellyfin key an attacker could install a malicious plugin to run arbitrary commands.
Published on anvilsecure.com
Homepage is an open-source customizable web application dashboard with integrations for over 100 services. This blog post explains how I could exploit the vulnerabilities I found in the latest version of Homepage at that time (v0.8.13) to fully compromise a Jellyfin server achieving remote code execution by deploying…
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 proxy endpoint passed user-controlled values into backend request URLs without proper encoding or validation, and returned full upstream responses to the client.
Impact
An attacker with access to the dashboard could read sensitive data and privileged API keys and, with a Jellyfin key, install a plugin to run arbitrary commands; responses could not be exfiltrated cross-site due to the Same-Origin Policy.
What the attacker needed
Network access to the dashboard; no authentication on Homepage; integrated service reachable from Homepage
The fix
The maintainers released v0.9.0 with fixes, but the author found them insufficient and bypassed them, so proper URL-encoding of user input and opt-in verbose errors were still needed.
How it was found
- Open the Homepage dashboard and inspect the network traffic in the browser developer tools.
- Send a request to the proxy endpoint with the endpoint parameter set to a sensitive API path of an integrated service.
- Read the full upstream response, which includes data not shown in the dashboard.
- For Jellyfin, use the PlayControl endpoint with a crafted segments value to traverse to other API paths.
- Change the type parameter to customapi to send requests with any HTTP verb to arbitrary paths.
- Use a leaked Jellyfin API key to add a plugin repository, install a malicious plugin and restart the service.
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.
Homepage is a dashboard that shows status from other apps, like a media server, and it talks to them using stored passwords and keys. It has no login of its own, so anyone who can reach it can ask it to fetch things from those other apps. Because it fetches whatever address it is told, a visitor can reach parts of those apps they were never meant to see, including the keys that unlock them.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.