Skip to content

HTTP: If username and is empty string (default), Authorization is still used #2590

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

Open
sebix opened this issue Apr 2, 2025 · 0 comments
Open
Labels
bug Indicates an unexpected problem or unintended behavior component: bots

Comments

@sebix
Copy link
Member

sebix commented Apr 2, 2025

if http_username and http_password are set to an empty string, as it's the default with IntelMQ Manager, then the collector does send an Authorization header:

collector: Runtime configuration: parameter 'http_password' loaded with value 'HIDDEN'.
collector: Runtime configuration: parameter 'http_username' loaded with value ''.
....
os-collector: Request headers: {'User-Agent': 'python-requests/2.32.3', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'Basic Og=='}.

For endpoints which evaluate the header also, if not required, this triggers a 403.

@sebix sebix added bug Indicates an unexpected problem or unintended behavior component: bots labels Apr 2, 2025
@sebix sebix added this to the 3.4.1 Patch release milestone Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior component: bots
Projects
None yet
Development

No branches or pull requests

1 participant