HexBrain

Revive Adserver · Report #1306942

Use of a Broken or Risky Cryptographic Algorithm

Validstatus
mediumseverity
15upvotes
15 Sept 2021disclosed

How it was found

revive-adserver utilizes a PRNG for session-token generation, this means that an attacker could theoretically be able to generate session tokens at random and take over accounts at random.

This function does not generate cryptographically secure values, and should not be used for cryptographic purposes.

Location: https://github.com/revive-adserver/revive-adserver/blob/6e665eac9b20ff21c167eae420b73a976f3bb52a/www/admin/lib-sessions.inc.php#L228

References: https://www.php.net/manual/en/function.uniqid.php

Impact

This vulnerability is capable of allowing mass account takeover by having attackers generate other users' session tokens.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original