diff --git a/.appsec-tests/vpatch-CVE-2025-28367/CVE-2025-28367.yaml b/.appsec-tests/vpatch-CVE-2025-28367/CVE-2025-28367.yaml new file mode 100644 index 00000000000..c8438937918 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2025-28367/CVE-2025-28367.yaml @@ -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 diff --git a/.appsec-tests/vpatch-CVE-2025-28367/config.yaml b/.appsec-tests/vpatch-CVE-2025-28367/config.yaml new file mode 100644 index 00000000000..80bdc7f6a5e --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2025-28367/config.yaml @@ -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 diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2025-28367.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2025-28367.yaml new file mode 100644 index 00000000000..5694b813346 --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2025-28367.yaml @@ -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 diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index be69426f031..d0049dd92dc 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -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