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

提升SQL注入检测能力 #23

Open
chushuai opened this issue Jul 20, 2024 · 2 comments
Open

提升SQL注入检测能力 #23

chushuai opened this issue Jul 20, 2024 · 2 comments
Assignees
Labels
已上线 Already online 追求极致 Pursuing the Ultimate

Comments

@chushuai
Copy link
Owner

chushuai commented Jul 20, 2024

awvs会针对referer头和x-Forwarded-For检测
他会针对referer植入一个网址 一般是谷歌网址加一堆参数测试

image

@chushuai chushuai self-assigned this Jul 20, 2024
@chushuai chushuai added the 已上线 Already online label Jul 20, 2024
@chushuai
Copy link
Owner Author

chushuai commented Jul 20, 2024

https://portswigger.net/web-security/all-labs

1.使用AWVS扫描出了延时注入。
这个是awvs的payload

0'XOR(if(now()=sysdate(),sleep(6),0))XOR'Z

2.https://portswigger.net/web-security/sql-injection/blind/lab-conditional-errors

3.这种协议提交参数的sql注入似乎未识别到。
POST包
image

@chushuai
Copy link
Owner Author

支持检测更加复杂的json sql请求注入
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)
Payload: {"userIds":["n1ddae22de4f74f8993e83c6' AND EXTRACTVALUE(9553,CONCAT(0x5c,0x7178707a71,(SELECT (ELT(9553=9553,1))),0x7178706271)) AND 'ubrK'='ubrK"],"uGroupIds":[],"privilegeName":"READER","resourceId":"p7a63bcf493fb49c4959633c","resourceType":"data-source"}

Type: time-based blind
Title: MySQL >= 5.0.12 RLIKE time-based blind
Payload:

{
	"userIds": [
		"n1ddae22de4f74f8993e83c6' RLIKE SLEEP(5) AND 'NkVF'='NkVF"
	],
	"uGroupIds": [],
	"privilegeName": "READER",
	"resourceId": "p7a63bcf493fb49c4959633c",
	"resourceType": "data-source"
}

@chushuai chushuai changed the title SQL注入检测模块优化 提升SQL注入检测能力 Jul 20, 2024
@chushuai chushuai added 追求极致 Pursuing the Ultimate and removed 已上线 Already online labels Jul 20, 2024
@chushuai chushuai added the 已上线 Already online label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
已上线 Already online 追求极致 Pursuing the Ultimate
Projects
None yet
Development

No branches or pull requests

1 participant