CVE-2024-53275
JSON

5.3medium

GHSL-2024-091: DNS rebinding attack in home-gallery

Severity
5.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.28% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

Home-Gallery.org is a self-hosted open-source web gallery to browse personal photos and videos. In 1.15.0 and earlier, the default setup of home-gallery is vulnerable to DNS rebinding. Home-gallery is set up without TLS and user authentication by default, leaving it vulnerable to DNS rebinding. In this attack, an attacker will ask a user to visit their website. The attacker website will then change the DNS records of their domain from their IP address to the internal IP address of the home-gallery instance. To tell which IP addresses are valid, we can rebind a subdomain to each IP address we want to check, and see if there is a response. Once potential candidates have been found, the attacker can launch the attack by reading the response of the web server after the IP address has changed. When the attacker domain is fetched, the response will be from the home-gallery instance, not the attacker website, because the IP address has been changed. Due to a lack of authentication, home-gallery photos can then be extracted by the attacker website.

Affected

Product or packageVersionsReported by
xemle home-gallery<= 1.15.0CVE List

Classification

CWE-350

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

Home-Gallery.org is a self-hosted open-source web gallery to browse personal photos and videos. In 1.15.0 and earlier, the default setup of home-gallery is vulnerable to DNS rebinding. Home-gallery is set up without TLS and user authentication by default, leaving it vulnerable to DNS rebinding. In this attack, an attacker will ask a user to visit their website. The attacker website will then change the DNS records of their domain from their IP address to the internal IP address of the home-gallery instance. To tell which IP addresses are valid, we can rebind a subdomain to each IP address we want to check, and see if there is a response. Once potential candidates have been found, the attacker can launch the attack by reading the response of the web server after the IP address has changed. When the attacker domain is fetched, the response will be from the home-gallery instance, not the attacker website, because the IP address has been changed. Due to a lack of authentication, home-gallery photos can then be extracted by the attacker website.

NVD (es)

Home-Gallery.org es una galería web autohospedada de código abierto para explorar fotografías y vídeos personales. En 1.15.0 y versiones anteriores, la configuración predeterminada de la galería de inicio es vulnerable a la nueva vinculación de DNS. La galería de inicio está configurada sin TLS ni autenticación de usuario de forma predeterminada, lo que la deja vulnerable a la nueva vinculación de DNS. En este ataque, un atacante pedirá al usuario que visite su sitio web. Luego, el sitio web del atacante cambiará los registros DNS de su dominio de su dirección IP a la dirección IP interna de la instancia de la galería de inicio. Para saber qué direcciones IP son válidas, podemos volver a vincular un subdominio a cada dirección IP que queramos verificar y ver si hay una respuesta. Una vez que se han encontrado candidatos potenciales, el atacante puede lanzar el ataque leyendo la respuesta del servidor web después de que la dirección IP haya cambiado. Cuando se recupera el dominio del atacante, la respuesta será de la instancia de la galería de inicio, no del sitio web del atacante, porque se cambió la dirección IP. Debido a la falta de autenticación, el sitio web del atacante puede extraer las fotos de la galería de inicio.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-53275 changed 2025-02-18CVE Terms of Use
NVDCVE-2024-53275 changed 2026-06-17Public domain