Thanks to visit codestin.com
Credit goes to github.com

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:[email protected]:3128
upstream http proxy:[email protected]:3128 "google.com"
upstream http userame:p@[email protected]:3128
upstream http userame:p@[email protected]:3128 "google.com"
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"[email protected]:3128
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"[email protected]:3128 "google.com"
upstream http proxy:[email protected]:3128
upstream http proxy:[email protected]:3128 "google.com"
upstream http userame:p@[email protected]:3128
upstream http userame:p@[email protected]:3128 "google.com"
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"[email protected]:3128
upstream http allspecial:ALL~`!@#$%^&*()'_+-={}|\][;"[email protected]: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