mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 13:14:27 +02:00
Fix security vulnerability in admin modules
- The Module\BaseAdmin::post method checked credentials but didn't abort the process when it failed - Created Module\BaseAdmin::checkAdminAccess method
This commit is contained in:
parent
9bc2c5a52e
commit
3efa8648c5
12 changed files with 29 additions and 36 deletions
|
@ -27,7 +27,7 @@ class PhpInfo extends BaseAdmin
|
|||
{
|
||||
public static function rawContent(array $parameters = [])
|
||||
{
|
||||
parent::rawContent($parameters);
|
||||
self::checkAdminAccess();
|
||||
|
||||
phpinfo();
|
||||
exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue