Skip to content

Sql Map - Custom Injection point #3889

@jeromesheerin

Description

@jeromesheerin

Hi There

During testing using the "" as the custom injection point for my JSON data, I noticed that my cookie had the "" included and it was valid the the active session. However it seems that sqlmap removes all occurrences of the "*" symbol from the POST request, and now my cookie is no longer valid.

To Reproduce
Example of the request. As you can see the cookie has the "*" more than one, and sql map removes it

PUT /rest/ui/workspace HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Accept: /
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://localhost
X-Requested-With: XMLHttpRequest
Content-Type: application/json; charset=utf-8
Application: alarmsearch
Content-Length: 303
Connection: close
Cookie: Prore=S2~AQIC5wM2LY4Sfczs8Mx-dAGvcQEjDwLzoqjQlExHaZ-6QHEAAJTSQACMDIAAlNLABM1MDk3Mjk4NTk4MjY4OTQzODGHY0AAJTMQACMDM*

{"id":"workspace_1565073686024","value":"{"search":true,"nodesImported":80,"id":"workspace_1565073686024","groupName":"alarmsearch:administrator_importedNodes_1565073706867;alarmsearch:administrator_selectedNodes_1565073706867","date":1566309623332,"%workspaceName%":"ttttteeessstttt*"}"}

Command Run:
./sqlmap.py -r /home/rename-workspace --headers="User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:25.0) Gecko/20100101 Firefox/25.0" -vv --proxy http://localhost:8080

Variable to be replaced using injection point is
ttttteeessstttt*

Expected behavior
The cookie should remain intacted.

Screenshots
If applicable, add screenshots to help explain your problem.

Running environment:

  • sqlmap version [{1.3.7.9#dev}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions