Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
145 stars 127 forks source link

UNTESTED admin.php protection against XSS and CSRF #367

Closed divinity76 closed 5 years ago

divinity76 commented 5 years ago

see https://github.com/Znote/ZnoteAAC/issues/361 for more info

Znote commented 5 years ago

PHP Notice: Undefined variable: crypto_strong in /var/www/html/admin.php on line 35

PHP Warning: bin2hex() expects exactly 1 parameter, 2 given in /var/www/html/admin.php on line 35

PHP Notice: Undefined variable: crypt_strong in /var/www/html/admin.php on line 36

Tried to give a character GM: error: missing csrf token!

divinity76 commented 5 years ago

fixed the 3 first ones here https://github.com/Znote/ZnoteAAC/pull/367/commits/d9a86dc7a554583c89e438e3c33e0942624da9b3 , but im not sure where the give-GM code is.. can you run

var_dump('POST',$_POST,'GET',$_GET); when trying to give a char GM? with the new patch applied

Znote commented 5 years ago

Success. No errors. Character Znotegm recieved the ingame position: God.