GHSL-2024-091_GHSL-2024-092: DNS rebinding attacks against Home-gallery - CVE-2024-53275, CVE-2024-53276
Home-gallery runs without TLS or authentication by default, so a malicious website can use DNS rebinding to reach the local instance and read the user's photos. A separate open CORS policy lets any website read endpoints, though most pages need JavaScript and preview image paths are randomised.
Home-gallery is vulnerable to DNS rebinding attacks and implements a broad CORS policy that may make it vulnerable to present or future attacks.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server has no authentication and no host-header validation, and it also enables a permissive CORS policy, so it trusts requests from any origin.
Impact
An attacker could disclose photos from home-gallery instances on the same intranet as the victim; the CORS issue may only lead to information disclosure in rare cases because most pages need JavaScript and preview paths are randomised.
What the attacker needed
Victim visits attacker website; attacker controls DNS for their domain; home-gallery on same intranet; default setup without TLS or auth
The fix
The maintainer said TLS should be enabled by the user, while the reporter suggested checking the host header or adding authentication; the text does not say it was fixed.
How it was found
- The attacker hosts a page that repeatedly creates an iframe pointing at the attacker's own domain.
- The attacker changes the DNS record for that domain to point at the victim's home-gallery IP address.
- After the DNS change, the iframe loads the home-gallery page from the local network.
- The attacker's script reads image sources from inside the iframe and fetches them to display the photos.
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.
Home-gallery is a photo server you run on your own computer or home network. Normally other websites cannot read it because they do not know its private address. DNS rebinding tricks the browser into thinking the attacker's website is the same place as your home-gallery, so the attacker's page can read your photos.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.