Skip to content

Conversation

@reshadp
Copy link

@reshadp reshadp commented Sep 30, 2020

Change regular expression for password from [^@]* to .* this matches all characters including the @ character.

Tested with an upstream squid proxy which enforces basic authentication.
I used the following username password combinations to test the following config directives (in a few permutations/combinations)

upstream http proxy:proxy@10.10.20.50:3128
upstream http proxy:proxy@10.10.20.50:3128 "google.com"
upstream http userame:p@ssword@10.10.20.50:3128
upstream http userame:p@ssword@10.10.20.50:3128 "google.com"
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"ALL@10.10.20.50:3128
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"ALL@10.10.20.50:3128 "google.com"
upstream http proxy:proxy@proxy.test.com:3128
upstream http proxy:proxy@proxy.test.com:3128 "google.com"
upstream http userame:p@ssword@proxy.test.com:3128
upstream http userame:p@ssword@proxy.test.com:3128 "google.com"
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"ALL@proxy.test.com:3128
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"ALL@proxy.test.com:3128 "google.com"

Change regular expression for password from `[^@]*` to `.*` this matches all characters including the @ character.
@reshadp reshadp changed the title update conf.c: regular expression for password #1 update conf.c: regular expression for password Oct 1, 2020
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.

1 participant