2022-06-14 21:58:34 +01:00
title : SQL Injection Strings
id : 5513deaf-f49a-46c2-a6c8-3f111b5cb453
status : test
description : Detects SQL Injection attempts via GET requests in access logs
author : Saw Win Naung, Nasreddine Bencherchali
date : 2020 /02/22
2022-06-27 16:46:18 +02:00
modified : 2022 /06/27
2022-06-14 21:58:34 +01:00
references :
- https://www.acunetix.com/blog/articles/exploiting-sql-injection-example/
- https://www.acunetix.com/blog/articles/using-logs-to-investigate-a-web-application-attack/
- https://brightsec.com/blog/sql-injection-payloads/
- https://github.com/payloadbox/sql-injection-payload-list
logsource :
category : webserver
detection :
2022-06-15 11:29:31 +01:00
select_method :
2022-06-15 11:38:34 +01:00
cs-method : 'GET'
2022-06-14 21:58:34 +01:00
keywords :
- '=select'
- 'UNION SELECT'
- 'UNION%20SELECT'
- 'UNION ALL SELECT'
- 'UNION%20ALL%20SELECT'
- 'CONCAT(0x'
- 'order by '
- 'order%20by%20'
- 'information_schema.tables'
- 'group_concat('
- 'table_schema'
- 'select%28sleep%2810%29'
- '@@version'
- "'1'='1"
- '%271%27%3D%271'
- 'SELECTCHAR('
- 'select * '
- 'select%20*%20'
- 'or 1=1#'
- 'or%201=1#'
2022-06-15 11:48:15 +01:00
filter :
sc-status : 404
2022-06-27 16:46:18 +02:00
filter_fps :
- '=select2'
condition : select_method and keywords and not 1 of filter*
2022-06-14 21:58:34 +01:00
fields :
- client_ip
- vhost
- url
- response
falsepositives :
- Java scripts and CSS Files
- User searches in search boxes of the respective website
2022-06-15 11:48:15 +01:00
- Internal vulnerability scanners can cause some serious FPs when used, if you experience a lot of FPs due to this think of adding more filters such as "User Agent" strings and more response codes
2022-06-14 21:58:34 +01:00
level : high