返回介绍

Finding Your First XXE!

发布于 2024-10-11 20:34:02 字数 1626 浏览 0 评论 0 收藏 0

Now that you understand the basics of the XXE attack, try to find your own XXE vulnerability on a real target. Follow the steps covered in this chapter to maximize your chances of success:

既然你已经理解了 XXE 攻击的基础知识,请尝试在实际目标上找到你自己的 XXE 漏洞。按照本章节中介绍的步骤,最大化成功的机会。

  1. Find data entry points that you can use to submit XML data.
  2. Determine whether the entry point is a candidate for a classic or blind XXE. The endpoint might be vulnerable to classic XXE if it returns the parsed XML data in the HTTP response. If the endpoint does not return results, it might still be vulnerable to blind XXE, and you should set up a callback listener for your tests.
  3. Try out a few test payloads to see if the parser is improperly configured. In the case of classic XXEs, you can check whether the parser is processing external entities. In the case of blind XXEs, you can make the server send requests to your callback listener to see if you can trigger outbound interaction.
  4. If the XML parser has the functionalities that make it vulnerable to XXE attacks, try to exfiltrate a common system file, like /etc/hostname .
  5. You can also try to retrieve some more sensitive system files, like /etc/shadow or ~/.bash_history .
  6. If you cannot exfiltrate the entire file with a simple XXE payload, try to use an alternative data exfiltration method.
  7. See if you can launch an SSRF attack using the XXE.
  8. Draft up your very first XXE report and send it over to the company!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文