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

Skip to content

fix parsing single header via --headers parameter#5913

Closed
abright25 wants to merge 1 commit intosqlmapproject:masterfrom
abright25:master
Closed

fix parsing single header via --headers parameter#5913
abright25 wants to merge 1 commit intosqlmapproject:masterfrom
abright25:master

Conversation

@abright25
Copy link
Copy Markdown

@abright25 abright25 commented Jun 20, 2025

Fix of #5908 introduced new error.
Sqlmapapi scan can not start if --headers contains only one header

Example:
python3 sqlmap.py --url="https://example.com" --method="POST" --headers="Age: 99*"

It returns error
[15:30:25] [CRITICAL] invalid header value: 'A'. Valid header format is 'name:value'

Before patching #5908 conf.headers was always of array type, because of .split()
After patching .split is not called on single value and for headerValue in conf.headers: started working with a string value and itrating characters

@stamparm stamparm closed this in 0a4cdd7 Jun 22, 2025
tanaydin pushed a commit to tanaydin/sqlmap that referenced this pull request Jul 14, 2025
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