id: CVE-2023-4666

info:
  name: Form-Maker < 1.15.20 - Unauthenticated Arbitrary File Upload
  author: pussycat0x
  severity: critical
  description: |
    The plugin does not validate signatures when creating them on the server from user input, allowing unauthenticated users to create arbitrary files and lead to RCE.
  impact: |
    Unauthenticated attackers can exploit missing signature validation to upload arbitrary files and achieve remote code execution on WordPress installations running vulnerable Form-Maker plugins.
  remediation: Fixed in 1.15.20
  reference:
    - https://wpscan.com/vulnerability/c6597e36-02d6-46b4-89db-52c160f418be/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2023-4666
    epss-score: 0.03283
    epss-percentile: 0.86849
    cpe: cpe:2.3:a:10web:form_maker:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    fofa-query: 'body="/wp-content/plugins/form-maker/"'
    max-request: 1
    vendor: 10web
    product: form_maker
    framework: wordpress
  tags: wpscan,cve,cve2023,wordpress,wp-plugin,form-maker,passive,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/form-maker/readme.txt"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "compare_versions(version, '< 1.15.20')"
          - "contains(body, 'Form Maker by 10Web')"
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        name: version
        regex:
          - 'Stable tag: ([0-9.]+)'
        internal: true
# digest: 490a0046304402206101237d82bd34bd5f51a3887de9d67b6330bc5b87804e19d2da63110b2161e7022015b236c8ce97de8064f2895d468471db06522c8a7d71b871b14b17cb2ae43c26:922c64590222798bb761d5b6d8e72950