mirror of
https://github.com/friendica/friendica
synced 2025-04-20 05:10:11 +00: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
|
@ -30,7 +30,7 @@ class Features extends BaseAdmin
|
|||
{
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
parent::post($parameters);
|
||||
self::checkAdminAccess();
|
||||
|
||||
self::checkFormSecurityTokenRedirectOnError('/admin/features', 'admin_manage_features');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue