From c1cf4d64d3d26209f3779ba196fdf1500e0af2bf Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:33:40 +0200 Subject: [PATCH 1/4] Add CVE-2025-6058 rule --- appsec-rules/crowdsecurity/CVE-2025-6058.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 appsec-rules/crowdsecurity/CVE-2025-6058.yaml diff --git a/appsec-rules/crowdsecurity/CVE-2025-6058.yaml b/appsec-rules/crowdsecurity/CVE-2025-6058.yaml new file mode 100644 index 00000000000..5ff2b914369 --- /dev/null +++ b/appsec-rules/crowdsecurity/CVE-2025-6058.yaml @@ -0,0 +1,49 @@ +## autogenerated on 2025-08-27 14:33:37 +name: crowdsecurity/vpatch-CVE-2025-6058 +description: 'Detects unauthenticated arbitrary file upload in WPBookit WordPress plugin via add_booking_type route.' +rules: + - and: + - zones: + - URI + transform: + - lowercase + match: + type: contains + value: /wp-admin/admin-ajax.php + - zones: + - BODY_ARGS + variables: + - action + transform: + - lowercase + match: + type: equals + value: wpb_ajax_post + - zones: + - BODY_ARGS + variables: + - route_name + transform: + - lowercase + match: + type: equals + value: add_booking_type + - zones: + - FILENAMES + transform: + - lowercase + match: + type: endsWith + value: .php + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'WPBookit - File Upload' + classification: + - cve.CVE-2025-6058 + - attack.T1190 + - cwe.CWE-434 From b6ca7c24ce21ae284d1796b0e26d90e57ee1413f Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:33:42 +0200 Subject: [PATCH 2/4] Add CVE-2025-6058 test config --- .appsec-tests/CVE-2025-6058/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .appsec-tests/CVE-2025-6058/config.yaml diff --git a/.appsec-tests/CVE-2025-6058/config.yaml b/.appsec-tests/CVE-2025-6058/config.yaml new file mode 100644 index 00000000000..6688afcf4fb --- /dev/null +++ b/.appsec-tests/CVE-2025-6058/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2025-08-27 14:33:37 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2025-6058.yaml +nuclei_template: CVE-2025-6058.yaml From 091b647447df7008365f1caf2b7271fc35186773 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:33:44 +0200 Subject: [PATCH 3/4] Add CVE-2025-6058.yaml test --- .../CVE-2025-6058/CVE-2025-6058.yaml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .appsec-tests/CVE-2025-6058/CVE-2025-6058.yaml diff --git a/.appsec-tests/CVE-2025-6058/CVE-2025-6058.yaml b/.appsec-tests/CVE-2025-6058/CVE-2025-6058.yaml new file mode 100644 index 00000000000..ef697a3d16d --- /dev/null +++ b/.appsec-tests/CVE-2025-6058/CVE-2025-6058.yaml @@ -0,0 +1,42 @@ +## autogenerated on 2025-08-27 14:33:37 +id: CVE-2025-6058 +info: + name: CVE-2025-6058 + author: crowdsec + severity: info + description: CVE-2025-6058 testing + tags: appsec-testing +http: + - raw: + - | + POST /wp-admin/admin-ajax.php HTTP/1.1 + Host: {{Hostname}} + Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW + + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="action" + + wpb_ajax_post + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="route_name" + + add_booking_type + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="title" + + testtitle + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="booking_type" + + testtype + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="cover_image_img"; filename="testfile.php" + Content-Type: application/octet-stream + + + ------WebKitFormBoundary7MA4YWxkTrZu0gW-- + cookie-reuse: true + matchers: + - type: status + status: + - 403 From e272603e41357b6271bc0817e9b5103884bd05b2 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 27 Aug 2025 16:33:45 +0200 Subject: [PATCH 4/4] Add CVE-2025-6058 rule to vpatch collection --- collections/crowdsecurity/appsec-virtual-patching.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index be69426f031..537c272d8ed 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/CVE-2025-6058 author: crowdsecurity contexts: - crowdsecurity/appsec_base