Skip to content

Conversation

nat-leo
Copy link

@nat-leo nat-leo commented Aug 15, 2025

This patch removes the circumnavigation by stopping the browser from automatically grabbing the form key and sticking it in the URL.

The Issue

There's a lot of really nice security practices within the web gui. However, a missing PreventDefault() function in the Login Form is causing the API key and endpoint to be leaked into the URL, adding a circumnavigation to using just the Authorization header.

Screenshot 2025-08-15 at 12 43 06 PM

The fix

The newly added PreventDefault() in the login form stops the API key from leaking into the URL, which may propagate to Browser histories and server logs with the API key attached. Here's how it looks now:

On Chrome:
Screenshot 2025-08-15 at 12 44 04 PM

On Safari:
Screenshot 2025-08-15 at 12 52 16 PM

…vigation of Authorization header that casues API key to be exposed in URL.
@MarcMcIntosh MarcMcIntosh changed the base branch from main to dev September 17, 2025 13:05
@MarcMcIntosh MarcMcIntosh changed the base branch from dev to main September 17, 2025 13:06
@MarcMcIntosh MarcMcIntosh changed the base branch from main to main-stable September 17, 2025 13:14
@MarcMcIntosh MarcMcIntosh changed the base branch from main-stable to main September 17, 2025 13:14
@MarcMcIntosh
Copy link
Contributor

Hello,

thanks for catching that one :)

I'll see about getting it merge upstream asap.

@MarcMcIntosh MarcMcIntosh changed the base branch from main to pr-895 September 17, 2025 13:34
@MarcMcIntosh MarcMcIntosh merged commit abbbb28 into smallcloudai:pr-895 Sep 17, 2025
MarcMcIntosh pushed a commit that referenced this pull request Sep 17, 2025
…vigation of Authorization header that casues API key to be exposed in URL. (#895)
@MarcMcIntosh
Copy link
Contributor

cherry picked to the dev branch 51a2336

@nat-leo
Copy link
Author

nat-leo commented Sep 19, 2025

@MarcMcIntosh Thank you!

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

Successfully merging this pull request may close these issues.

2 participants