Skip to content

Add vpatch-CVE-2025-28367 rule and test #30

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
17 changes: 17 additions & 0 deletions .appsec-tests/vpatch-CVE-2025-28367/CVE-2025-28367.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## autogenerated on 2025-05-07 17:04:33
id: CVE-2025-28367
info:
name: CVE-2025-28367
author: crowdsec
severity: info
description: CVE-2025-28367 testing
tags: appsec-testing
http:
- method: GET
path:
- "{{BaseURL}}/api/BetterImageGallery/imagehandler?path=../../../Web.Config"
cookie-reuse: true
matchers:
- type: status
status:
- 403
5 changes: 5 additions & 0 deletions .appsec-tests/vpatch-CVE-2025-28367/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## autogenerated on 2025-05-07 17:04:33
appsec-rules:
- ./appsec-rules/crowdsecurity/base-config.yaml
- ./appsec-rules/crowdsecurity/vpatch-CVE-2025-28367.yaml
nuclei_template: CVE-2025-28367.yaml
35 changes: 35 additions & 0 deletions appsec-rules/crowdsecurity/vpatch-CVE-2025-28367.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## autogenerated on 2025-05-07 17:04:33
name: crowdsecurity/vpatch-CVE-2025-28367
description: 'Detects directory traversal in mojoPortal BetterImageGallery API Controller (CVE-2025-28367)'
rules:
- and:
- zones:
- URI
transform:
- lowercase
- urldecode
match:
type: contains
value: /api/betterimagegallery/imagehandler
- zones:
- ARGS
variables:
- path
transform:
- lowercase
- urldecode
match:
type: contains
value: ../

labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: 'http:exploit'
label: 'MojoPortal - LFI'
classification:
- cve.CVE-2025-28367
- attack.T1006
- cwe.CWE-284
1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2024-27292
- crowdsecurity/vpatch-CVE-2025-24893
- crowdsecurity/vpatch-CVE-2021-43798
- crowdsecurity/vpatch-CVE-2025-28367
author: crowdsecurity
contexts:
- crowdsecurity/appsec_base
Expand Down