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

Sqlmap doesn't find basic sql injection in login form #4411

Closed
ostrolucky opened this issue Oct 30, 2020 · 1 comment
Closed

Sqlmap doesn't find basic sql injection in login form #4411

ostrolucky opened this issue Oct 30, 2020 · 1 comment
Assignees
Labels

Comments

@ostrolucky
Copy link

Describe the bug
Website login form has a basic sql injection in form of just using ' or '1'='1 as a password, but sqlmap doesn't find it.

To Reproduce

  1. Either make https://github.com/crashtest-security/fixme running locally, or use https://hack-me-if-you-can.herokuapp.com/?site=login.php
  2. Run either sqlmap -u http://localhost:8080/\?site\=login.php --method=post --data="loggedin=on&username=admin&password=" --dbms=mysql -p password --not-string='Login unsuccessful!' ,
    or
    sqlmap -u "https://hack-me-if-you-can.herokuapp.com/?site=login.php" --method=post --data="loggedin=on&username=admin&password=" --dbms=mysql -p password --not-string='Login unsuccessful!' respectively

Expected behavior
NOT the current output:

[13:19:48] [WARNING] POST parameter 'password' does not seem to be injectable

I expect sqlmap would be able to log in and that way confirm that there actually is an sql injection present.

Running environment:

  • sqlmap version 1.4.7#stable
  • Installation method brew
  • Operating system: MacOS Catalina
  • Python version whatever is used in macos catalina, there are multiple python versions installed

Target details:

  • MySQL
@stamparm
Copy link
Member

stamparm commented Oct 30, 2020

1

p.s. --drop-set-cookie --risk=3

@stamparm stamparm self-assigned this Oct 30, 2020
@sqlmapproject sqlmapproject locked and limited conversation to collaborators Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants