bWAPP解题笔记—— A4-Insecure Direct Object References

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/FunkyPants/article/details/82663463

A4——Insecure Direct Object References

不安全的直接对象引用。

Insecure DOR (Change Secret)

low

在HTML中有一个隐藏的值login,表示登录用户。

我们可以修改login,修改其他用户的secret

medium and high

使用了随机生成的token验证当前login 的用户。

// A random token is generated when the security level is MEDIUM or HIGH
if($_COOKIE["security_level"] == "1" or $_COOKIE["security_level"] == "2")
{

$token = sha1(uniqid(mt_rand(0,100000)));
$_SESSION["token"] = $token;
}

Insecure DOR (Reset Secret)

Insecure DOR (Change Secret),可以任意修改loginsecret

Insecure DOR (Order Tickets)

价格可以被修改。

猜你喜欢

转载自blog.csdn.net/FunkyPants/article/details/82663463