CVE-2018-12520
Description
An issue was discovered in ntopng 3.4 before 3.4.180617. The PRNG involved in the generation of session IDs is not seeded at program startup. This results in deterministic session IDs being allocated for active user sessions. An attacker with foreknowledge of the operating system and standard library in use by the host running the service and the username of the user whose session they're targeting can abuse the deterministic random number generation in order to hijack the user's session, thus escalating their access.
Severity
HIGH
CVSS v3
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
10.176%
chance of exploitation in the next 30 days
higher than 95.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 3
Metasploit modules: 0
Nuclei templates: 0
Exploit-DB: 1
Weakness
- CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)
Timeline
- 2018-07-03First Exploit-DB entry (EDB-ID 44973)2 days before publication
- 2018-07-05Published by the CNA20:00 UTC
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 44973 | webapps | lua | 2018-07-03 | no |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ntop ntopng | from 3.4 before 3.4.180617fixed in 3.4.180617 | 3.4.180617 |
References
- https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a
- http://seclists.org/fulldisclosure/2018/Jul/14
- https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f
- https://www.exploit-db.com/exploits/44973/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-12520'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-12520'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-12520'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-12520'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).