HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
https://unit3d.dev
GNU Affero General Public License v3.0
1.91k stars 366 forks source link

[Bug] /dashboard/seedboxes: The MAC is invalid. #1607

Closed piratkongen closed 3 years ago

piratkongen commented 3 years ago

Describe the bug When in Staff Area, clicking on 'Seedboxes' to view seedboxes, it throws error 500.

Expected behavior Look seedbox list.

UNIT3D (please complete the following information):

Desktop (please complete the following information):

Stack error:

`
The MAC is invalid. (View: /var/www/html/resources/views/Staff/seedbox/index.blade.php) {"userId":3,"exception":"[object] (Facade\\Ignition\\Exceptions\\ViewException(code: 0): The MAC is invalid. (View: /var/www/html/resources/views/Staff/seedbox/index.blade.php) at /var/www/html/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:199)
`
HDVinnie commented 3 years ago

@piratkongen this is not a bug. This is due to you changing your APP_KEY. Laravel's encryption services provide a simple, convenient interface for encrypting and decrypting text via OpenSSL using AES-256 and AES-128 encryption. All of Laravel's encrypted values are signed using a message authentication code (MAC) so that their underlying value can not be modified or tampered with once encrypted. So The MAC is invalid is due to you having data in your database that was encrypted using a different APP_KEY.