Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .appsec-tests/vpatch-CVE-2025-22785/CVE-2025-22785.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## autogenerated on 2026-04-15 13:20:07
id: CVE-2025-22785
info:
name: CVE-2025-22785
author: crowdsec
severity: info
description: CVE-2025-22785 testing
tags: appsec-testing
http:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded

action=cbs_action_booking_delete&booking_id=1&course_id=1 AND (SELECT 1 FROM (SELECT(SLEEP(8)))sqltest)
cookie-reuse: true
matchers:
- type: status
status:
- 403
5 changes: 5 additions & 0 deletions .appsec-tests/vpatch-CVE-2025-22785/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## autogenerated on 2026-04-15 13:20:07
appsec-rules:
- ./appsec-rules/crowdsecurity/base-config.yaml
- ./appsec-rules/crowdsecurity/vpatch-CVE-2025-22785.yaml
nuclei_template: CVE-2025-22785.yaml
52 changes: 52 additions & 0 deletions appsec-rules/crowdsecurity/vpatch-CVE-2025-22785.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## autogenerated on 2026-04-15 13:20:07
name: crowdsecurity/vpatch-CVE-2025-22785
description: 'Detects SQL injection in Course Booking System WordPress plugin via booking_id or course_id parameters.'
rules:
- and:
- zones:
- URI
transform:
- lowercase
match:
type: contains
value: /wp-admin/admin-ajax.php
- zones:
- BODY_ARGS
variables:
- booking_id
transform:
- lowercase
- urldecode
match:
type: contains
value: ' and '
- and:
- zones:
- URI
transform:
- lowercase
match:
type: contains
value: /wp-admin/admin-ajax.php
- zones:
- BODY_ARGS
variables:
- course_id
transform:
- lowercase
- urldecode
match:
type: contains
value: ' and '

labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: 'http:exploit'
label: 'Course Booking System - SQLI'
classification:
- cve.CVE-2025-22785
- attack.T1190
- cwe.CWE-89
1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2025-8110
- crowdsecurity/vpatch-CVE-2024-27348
- crowdsecurity/vpatch-CVE-2020-5902
- crowdsecurity/vpatch-CVE-2025-22785
- crowdsecurity/vpatch-CVE-2018-13379
- crowdsecurity/vpatch-CVE-2022-26134
- crowdsecurity/vpatch-CVE-2026-1557
Expand Down
Loading