Skip to content

If website has nginx restricted access by auth_basic_user_file $httpRequest->geturl("")->getAbsoluteurl("") returns path with auth parameters included #215

@tkorcina

Description

@tkorcina

Version: v3.1.6

Bug Description

When I use the $httpRequest->geturl("")->getAbsoluteurl("") on website on nginx with restricted basic authorization
(auth_basic_user_file directive with a path to the .htpasswd file) it returns the path with the login and unhashed password from the file.

https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/


Example:

.htpasswd file:

user1:$apr1$/woC1jnP$KAh0SsVn5qeSMjTtn0E9Q0

echo $httpRequest->geturl("")->getAbsoluteurl("") returns:

"https://user1:realWorkingPassword@www.example.com"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions