sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
328 stars 174 forks source link

JWT Key Mismatch error after upgrade #891

Closed SpirTBBX closed 5 months ago

SpirTBBX commented 1 year ago

What are the steps to reproduce this issue?

  1. Upgrade the Panel from a dev version of 1.7 iirc (a dev version that didn't have JWT tokens) to the latest version (1.8.0)
  2. Login to the panel as admin
  3. Try to edit/remove bans/mutes/gags
  4. Meet the error "Possible hacking attempt (URL Key mismatch)!"
  5. Found a new setting for salt for passwords and a jwt secret key in the configuration file

What happens? An error "Possible hacking attempt (URL Key mismatch)!" is met whenever trying to edit/remove bans/mutes/gags applied to a player (everything else works good so far).

What were you expecting to happen?

Being able to edit/remove bans/mutes/gags

What versions of software are you using?

Operating System: (I know it's not an OS but it's what I use) cPanel 110.0.5 (on CentOS 7 I believe) SourceBans++ Version: 1.8.0 PHP Version: 8.1.17 MySQL Version: 10.3.38-MariaDB Link to your project: https://bans.tugaarmy.pt Link to a phpinfo() output: https://bans.tugaarmy.pt/version.php

SpirTBBX commented 1 year ago

It might have been a upgrade issue. Reinstalling sourcebans and importing back the information fixed the issue