Add warning for privilege escalation exploit
This commit is contained in:
parent
6f550c850c
commit
32692782fb
@ -19,11 +19,18 @@ class AccessControl
|
|||||||
{
|
{
|
||||||
$this->app = $app;
|
$this->app = $app;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WARNING WARNING WARNING:
|
||||||
|
*
|
||||||
|
* Never use an asterisk without putting anything before it like this "*".
|
||||||
|
* An attacker could leverage this by putting a forward slash behind a
|
||||||
|
* protected page like this "protected-page.php/pwned!" to gain access.
|
||||||
|
*/
|
||||||
$this->acl = [
|
$this->acl = [
|
||||||
// routes that need power level 1 and up
|
// routes that need power level 1 and up
|
||||||
[
|
[
|
||||||
"routes" => [
|
"routes" => [
|
||||||
"race/simulator.php",
|
"race/simulator.php*",
|
||||||
"race/configure/*"
|
"race/configure/*"
|
||||||
],
|
],
|
||||||
"catcher" => [
|
"catcher" => [
|
||||||
|
Reference in New Issue
Block a user