Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for HTTP Authentication SQLi #404

Closed
CmdFreak opened this issue Feb 19, 2013 · 6 comments
Closed

Support for HTTP Authentication SQLi #404

CmdFreak opened this issue Feb 19, 2013 · 6 comments
Assignees
Labels

Comments

@CmdFreak
Copy link

Can you Support HTTP Authentication SQLi?

Example:
go on: [REDACTED BY SQLMAP DEVS]

Type this as Username:
' or extractvalue(1,concat(0x2e,(SELECT CONCAT(table_name) FROM information_schema.tables WHERE table_schema=database() LIMIT 1 OFFSET 0))) -- /**/

Type NO Password.

Then look at the sourcecode (STRG + U)

Can you support this kind of SQLi ?

@stamparm
Copy link
Member

You can't put live sites here. Closing this down.

p.s. there is a standard way how to approach this type of SQLi. Use Burp to intercept one valid request toward that site (using your browser) and use it with sqlmap (-r request.txt)

@CmdFreak
Copy link
Author

I have used a request, but it wont work.
http://wi.to/images/2013/02/26/fz4wB.png

whats wrong at my syntax?

@stamparm
Copy link
Member

Something is wrong with it. Could you please paste it here or send it
privately to miroslav@sqlmap.org
On Feb 26, 2013 12:19 AM, "CmdFreak" notifications@github.com wrote:

I have used a request, but it wont work.
http://wi.to/images/2013/02/26/fz4wB.png

whats wrong at my syntax?


Reply to this email directly or view it on GitHubhttps://github.com//issues/404#issuecomment-14082751.

@CmdFreak
Copy link
Author

Mail is out

stamparm added a commit that referenced this issue Feb 26, 2013
@stamparm
Copy link
Member

Your request looks like this:

GET / HTTP/1.1
Host: foobar
User-Agent: Mozilla/5.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Connection: keep-alive
Authorization: Basic ............

sqlmap can't do anything with it. There are no usable parameters here to be tested. Neither custom injection marks, neither POST parameters, neither GET parameters,... nothing.

@stamparm
Copy link
Member

Looking into it you would like sqlmap to automatically Base64 decode Authorization header, inject into it and Base64 encode it. This is Issue #25.

@ghost ghost assigned stamparm Jul 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants