{"exploit":{"id":"EDB-44262","name":"antMan 0.9.0c - Authentication Bypass","description":"antMan 0.9.0c - Authentication Bypass","cves":["CVE-2018-7739"],"author":"Joshua Bowser","published":"2018-03-07","platform":"java","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/44262","path":"exploits/java/webapps/44262.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-44262.txt","vulnerabilities":[{"id":"CVE-2018-7739","state":"PUBLISHED","title":null,"titleSource":null,"description":"antsle antman before 0.9.1a allows remote attackers to bypass authentication via invalid characters in the username and password parameters, as demonstrated by a username=>&password=%0a string to the /login URI. This allows obtaining root permissions within the web management console, because the login process uses Java's ProcessBuilder class and a bash script called antsle-auth with insufficient input validation.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-7739","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-2018-7739"},"updatedAt":"2024-08-05T06:37:58.066Z","retrievedAt":"2026-11-27T07:07:00.530Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-44262.png?v=2","url":"https://exploitbin.com/exploits/EDB-44262","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-44262/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-44262/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: antMan <= 0.9.0c Authentication Bypass\n# Date: 02-27-2018\n# Software Link: https://www.antsle.com\n# Version: <= 0.9.0c\n# Tested on: 0.9.0c\n# Exploit Author: Joshua Bowser\n# Contact: joshua.bowser@codecatoctin.com\n# Website: http://www.codecatoctin.com\n# Category: web apps\n\n1. Description\n\nantMan versions <= 0.9.c contain a critical authentication defect, allowing an unauthenticated attacker to obtain root permissions within the antMan web management console.\n\nhttp://blog.codecatoctin.com/2018/02/antman-authentication-bypass.html\n\n\n2. Proof of Concept\n\nThe antMan authentication implementation obtains user-supplied username and password parameters from a POST request issued to /login. Next, antMan utilizes Javaâ€™s ProcessBuilder class to invoke, as root, a bash script called antsle-auth.\n\nThis script contains two critical defects that allow an attacker to bypass the authentication checks.  By changing the username to > and the password to a url-encoded linefeed (%0a), we can force the authentication script to produce return values not anticipated by the developer.\n\nTo exploit these defects, use a web proxy to intercept the login attempt and modify the POST parameters as follows:\n\n#-------------------------\nPOST /login HTTP/1.1\nHost: 10.1.1.7:3000\n[snip]\n\nusername= > &password=%0a\n#-------------------------\n\nYou will now be successfully authenticated to antMan as the administrative root user.\n\n\n3. Solution:\n\nUpdate to version 0.9.1a","sha256":"281ad8da0e8ebca2b47df2ff083f10204ff409de0a3807beb846fcc189c0400a","bytes":1476,"fetchedAt":"2026-11-27T07:06:55.533Z","encoding":"utf-8 (display only; download retains original bytes)"}