{"id":"CVE-2024-24554","published":"2024-06-24T07:11:36Z","modified":"2024-08-01T23:19:52Z","title":"Bludit - Insecure Token Generation","vendor":"Bludit","product":"Bludit","tier":"tail","description":{"text":"Bludit uses predictable methods in combination with the MD5 hashing algorithm to generate sensitive tokens such as the API token and the user token. This allows attackers to authenticate against the Bludit API.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00242,"percentile":0.15707,"provenance":"source"},"cwes":[{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"},{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://www.redguard.ch/blog/2024/06/20/security-advisory-bludit/","tags":[]}],"priority":{"score":7.3,"factors":[{"name":"EPSS percentile","points":3.14},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"bludit","affectedVersions":[{"vendor":"Bludit","product":"Bludit","versions":["2.0"]}],"solutions":{"items":["Generating secure API and user auth tokens in PHP involves creating unique and cryptographically secure strings that can be used as tokens for authentication purposes. The following code snippet is a basic example of how to generate secure API tokens in PHP: ```php function generateApiToken($length = 32) { $token = bin2hex(random_bytes($length)); return $token; } ```"],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Disable API."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-115","name":"Authentication Bypass"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-24T13:47:33.209605Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-21972","exploited":false,"provenance":"source"}}