Skip to content

SQLMap fails to use http basic auth credentials correctly #4322

@mkauschi

Description

@mkauschi

Hi Miroslav,
I have to reopen my bug report #4320 because I dug more into SQLMaps code and found the issue. It was introduced from version 1.3.5 to version 1.3.6. The issue is in the class lib/request/connect.py (see screenshot).

Screenshot at 2020-09-01 11-17-19

For some reason the Basic authentication header is of type bytes now. SQLMap iterates over every field in the header and deletes it first. Then it checks if the instance is of type str and adds it again. Because the Basic authentication header is of type byte it is skipped and therefore removed from the headers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions