Skip to content

SQLMap fails to use http basic auth credentials correctly #4322

Closed

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.

Activity

  1. stamparm commented on Sep 1, 2020

    @stamparm
    Member

    @mkauschi thank you for your time :D. don't mind for it, but going to "patch" it myself

  2. self-assigned this
    on Sep 1, 2020
  3. stamparm commented on Sep 1, 2020

    @stamparm
    Member

    once again, thank you very much. do you want me to put you into https://github.com/sqlmapproject/sqlmap/blob/master/doc/THANKS.md ?

  4. mkauschi commented on Sep 1, 2020

    @mkauschi
    ContributorAuthor

    My pleasure, I like your tool very much! You could add me to the thanks file if you like :) I'm Manuel Kauschinger [email protected] ;-)

  5. added a commit that references this issue on Mar 9, 2024
    66e07df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions