Mojolicious versions from 0.999922 for Perl uses a hard coded string, or the applications class name, as an HMAC session cookie secret by default.
These predictable default secrets can be exploited by an attacker to forge session cookies. An attacker who knows or guesses the secret could compute valid HMAC signatures for the session cookie, allowing them to tamper with or hijack another user’s session.
The product uses a hard-coded, unchangeable cryptographic key.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Mojolicious | Mojolicious | 0.999922 (including) | 9.40 (including) |
| Libmojolicious-perl | Ubuntu | focal | * |
| Libmojolicious-perl | Ubuntu | oracular | * |