slabiak / AppointmentScheduler

Application to schedule appointments written in Java (Spring Boot)
MIT License
170 stars 96 forks source link

Security Issue. Host Header Poisoning – Open Redirect #53

Open abbisQQ opened 3 months ago

abbisQQ commented 3 months ago

Host Header Poisoning in the context of Open Redirect is a security vulnerability where an attacker manipulates the Host header of an HTTP request to inject a malicious value. When a web server relies on the Host header to construct URLs for redirects or other operations without proper validation, it can be tricked into redirecting users to an attacker-controlled domain. This can be exploited to perform phishing attacks, steal user credentials, or distribute malware.

Impact: An attacker can use this vulnerability to redirect users to a malicious website, leading to potential credential theft, malware distribution, or other malicious activities. This can compromise user trust and the security of the affected application.

Currently, the application accepts the Host header without any validation or checks.

Mitigation: To mitigate this vulnerability, ensure that the Host header is properly validated against a whitelist of allowed values. Additionally, avoid using the Host header to construct URLs for redirects or other security-critical operations.

PS sorry for posting this in here but i couldn't find your contact information.