0

I have an asp login form (username & password) that is SQL-injectable when the username is found in the database

For example, if I inserted

-username : foo   (foo founded in database)

-password : '.;/; 

Then the result is:

Incorrect syntax near ';'. Unclosed quotation mark after the character string ' order by dat desc '.`

Question: In sqlmap I wrote

sqlmap --url="foo.com/login.aspx" --data="username=foo&password=.';.;."
--level=5

But the sqlmap result is: all tested parameters appear to be not injectable.

What is the wrong with my sqlmap statement?

Anders
  • 64,406
  • 24
  • 178
  • 215
  • 2
    you are trying to inject it while injecting? just do this... sqlmap --url="foo.com/login.aspx" --data="username=foo&password=bar" --level=5 – TheHidden Jul 25 '16 at 17:12

1 Answers1

1

That you can generate an error doesn't necessarily mean you can exploit it. Did you try something like

bad' or '1' = '1

Can you bypass the login?

kaidentity
  • 2,634
  • 13
  • 30