Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect IP Logging for Failed Login Attempts and Potential Vulnerability to IP Spoofing #6978

Open
4 tasks done
zylxpl opened this issue May 7, 2024 · 0 comments
Open
4 tasks done

Comments

@zylxpl
Copy link

zylxpl commented May 7, 2024

Prerequisites

Platform (OS and CPU architecture)

Linux, ARM64

Installation

Docker

Setup

Other (please mention in the description)

AdGuard Home version

v0.107.48

Action

AHD behind rev proxy. On failed login attempts, the logs show the reverse proxy's IP address instead of the real user's IP address. Successful login attempts, however, are logged with the correct real user IP.

Expected result

If the reverse proxy is trusted, the logs should always display the real user IP address, retrieved for example from the XFF header.

Actual result

Failed login attempts are logged with the reverse proxy's IP address, which is not useful for auditing purposes. In contrast, successful login attempts are logged with the correct user IP address even for untrusted proxies - this might be vulnerable to IP spoofing attacks, where malicious actors could forge the X-Forwarded-For header to hide their identity.

Additional information and/or screenshots

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant