Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-12520
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:17 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-12520
Complete source record
{
"id": "291ea4a79b0a0ce2abf690ea5394af0d36b9e6ed3a912e257b1c92c79bc1b861",
"url": "https://osv.dev/vulnerability/CVE-2018-12520",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-12520",
"summary": "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.",
"evidence": "osv:CVE-2018-12520",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2018-12520",
"aliases": [
"CVE-2018-12520"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ntop/ntopng",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "30610bda60cbfc058f90a1c0a17d0e8f4516221a"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "30610bda60cbfc058f90a1c0a17d0e8f4516221a"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"3.0",
"2.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12520.json",
"vanir_signatures": [
{
"id": "CVE-2018-12520-8f92f2be",
"digest": {
"threshold": 0.9,
"line_hashes": [
"202271442157234930294765738479679829812",
"267773852443207195048138629058386591051",
"244806091101993796754636223602039024143",
"252123222992940558900645095617835342826"
]
},
"source": "https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a",
"target": {
"file": "src/HTTPserver.cpp"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2018-12520-ad17fef2",
"digest": {
"length": 4616,
"function_hash": "310015154338695952565071966124001018796"
},
"source": "https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a",
"target": {
"file": "src/HTTPserver.cpp",
"function": "HTTPserver::HTTPserver"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:26:57Z"
}
}
],
"modified": "2026-10-20T13:26:57.230365323Z",
"provider": "osv",
"references": [
"https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a",
"https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f",
"https://www.exploit-db.com/exploits/44973/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:ntop:ntopng:*:*:*:*:*:*:*:*"
],
"vendor_product": "ntop:ntopng",
"extracted_events": [
{
"range": [
{
"introduced": "3.4"
},
{
"fixed": "3.4.180617"
}
],
"source": "CPE_RANGE"
}
]
},
{
"extracted_events": [
{
"range": [
{
"introduced": "3.4"
},
{
"fixed": "3.4.180617"
}
],
"source": "DESCRIPTION"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-12520",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387695,
"published_at": "2018-07-05T20:29:00.527+00:00"
}