Back

MEDIUM

Bludit - Insecure Token Generation

Published Jun 24, 2024

Description

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.

Affected products

Remediation

Vendor solution

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; } ```

References (2)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner NCSC.ch
Published Jun 24, 2024
Updated Aug 1, 2024
Reserved Jan 25, 2024
CISA Vulnrichment
Updated Jun 24, 2024
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner NCSC.ch
Published Jun 24, 2024
Updated Aug 1, 2024
Exploited since n/a
EUVD-2024-21972