{"api_version":"1","generated_at":"2026-05-06T21:37:16+00:00","cve":"CVE-2018-12520","urls":{"html":"https://cve.report/CVE-2018-12520","api":"https://cve.report/api/cve/CVE-2018-12520.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-12520","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-12520"},"summary":{"title":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2018-07-05 20:29:00","updated_at":"2019-10-03 00:03:00"},"problem_types":["CWE-335"],"metrics":[],"references":[{"url":"https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a","name":"https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a","refsource":"CONFIRM","tags":["Patch","Third Party Advisory"],"title":"Added code to randomize values returned by rand() · ntop/ntopng@30610bd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://seclists.org/fulldisclosure/2018/Jul/14","name":"20180702 ntop-ng < 3.4.180617 - Authentication bypass / session hijacking","refsource":"FULLDISC","tags":["Mailing List","Third Party Advisory"],"title":"Full Disclosure: ntop-ng < 3.4.180617 - Authentication bypass / session\thijacking","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/44973/","name":"44973","refsource":"EXPLOIT-DB","tags":["Exploit","Third Party Advisory","VDB Entry"],"title":"ntop-ng < 3.4.180617 - Authentication Bypass - Lua webapps Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f","name":"https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f","refsource":"MISC","tags":["Third Party Advisory"],"title":"ntopng_cve_poc.py · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-12520","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-12520","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2018","cve_id":"12520","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ntop","cpe5":"ntopng","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"12520","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ntop","cpe5":"ntopng","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2018-12520","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a","refsource":"CONFIRM","url":"https://github.com/ntop/ntopng/commit/30610bda60cbfc058f90a1c0a17d0e8f4516221a"},{"name":"44973","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/44973/"},{"name":"20180702 ntop-ng < 3.4.180617 - Authentication bypass / session hijacking","refsource":"FULLDISC","url":"http://seclists.org/fulldisclosure/2018/Jul/14"},{"name":"https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f","refsource":"MISC","url":"https://gist.github.com/Psychotropos/3e8c047cada9b1fb716e6a014a428b7f"}]}},"nvd":{"publishedDate":"2018-07-05 20:29:00","lastModifiedDate":"2019-10-03 00:03:00","problem_types":["CWE-335"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":6.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":6.4,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ntop:ntopng:*:*:*:*:*:*:*:*","versionStartIncluding":"3.4","versionEndExcluding":"3.4.180617","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"12520","Ordinal":"129088","Title":"CVE-2018-12520","CVE":"CVE-2018-12520","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"12520","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"12520","Ordinal":"2","NoteData":"2018-07-05","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"12520","Ordinal":"3","NoteData":"2018-07-06","Type":"Other","Title":"Modified"}]}}}