xxe-lab icon indicating copy to clipboard operation
xxe-lab copied to clipboard

C#版本注入获取文件信息失败

Open ywyonui opened this issue 3 years ago • 0 comments

String xmlData ="<!DOCTYPE a[<!ENTITY xxe SYSTEM \"file:///D:/log.txt\">]>" + "<user><username>&xxe;</username><password>admin</password></user>";

直接在代码中写这个执行LoadXml 无法返回xxe 使用doc获取到对应的节点内容是空的,也就是没有把文件内容读取出来存到对应的节点中 这是什么原因呢?.net修复了?

ywyonui avatar Apr 02 '21 07:04 ywyonui