Detection rules › Sigma
Potential CVE-2023-25157 Exploitation Attempt
Detects a potential exploitation attempt of CVE-2023-25157 a SQL injection in GeoServer
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | No specific technique |
Rule body yaml
title: Potential CVE-2023-25157 Exploitation Attempt
id: c0341543-5ed0-4475-aabc-7eea8c52aa66
status: test
description: Detects a potential exploitation attempt of CVE-2023-25157 a SQL injection in GeoServer
references:
- https://github.com/win3zz/CVE-2023-25157
- https://twitter.com/parzel2/status/1665726454489915395
- https://github.com/advisories/GHSA-7g5f-wrx8-5ccf
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-06-14
tags:
- attack.initial-access
- cve.2023-25157
- detection.emerging-threats
logsource:
category: webserver
detection:
selection_url:
cs-method: 'GET'
cs-uri-query|contains|all:
- '/geoserver/ows'
- 'CQL_FILTER='
cs-uri-query|contains:
# Abusable Filters/Function as reported in the Advisory
- 'PropertyIsLike'
- 'strEndsWith'
- 'strStartsWith'
- 'FeatureId'
- 'jsonArrayContains'
- 'DWithin'
selection_payload:
cs-uri-query|contains:
- '+--'
- '+AS+'
- '+OR+'
- 'FROM'
- 'ORDER+BY'
- 'SELECT'
- 'sleep%28'
- 'substring%28'
- 'UNION'
- 'WHERE'
condition: all of selection_*
falsepositives:
- Vulnerability scanners
level: high
Stages and Predicates
Stage 0: condition
all of selection_*Stage 1: selection_url
selection_url:
cs-method: 'GET'
cs-uri-query|contains|all:
- '/geoserver/ows'
- 'CQL_FILTER='
cs-uri-query|contains:
- 'PropertyIsLike'
- 'strEndsWith'
- 'strStartsWith'
- 'FeatureId'
- 'jsonArrayContains'
- 'DWithin'
Stage 2: selection_payload
selection_payload:
cs-uri-query|contains:
- '+--'
- '+AS+'
- '+OR+'
- 'FROM'
- 'ORDER+BY'
- 'SELECT'
- 'sleep%28'
- 'substring%28'
- 'UNION'
- 'WHERE'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
cs-method | eq |
|
cs-uri-query | match |
|