Hypervisor & Ops-Appliance Pentest
Class of work: a normal app pentest dead-ends, full port scan reveals a separate ops/management host running hypervisor and self-hosted appliances. Goal is to turn any one of them into the DB: ESXi root -> VM disks -> MySQL/credentials, or NAS backups / ops-service secrets -> ESXi root.
Operating discipline (user preference)
- When the user says "拿到数据库" / "继续深挖" / curses at a blocker, the expected response is another executed attack, not a status report and not a request for credentials.
- Never open with "I need a credential/foothold". Exhaust untested surfaces first: vhost enumeration on every resolved IP, TLS/SNI port matrix, appliance login algorithms, offline JWT/dictionary attacks, OSS STS, supply chain.
- Only report a hard boundary after proving the login channel is live and the password is the sole gate (e.g. pyvmomi returns
InvalidLogin, not NotAuthenticated).
- No fabricated output, no dead ends dressed as success. A real "no" with evidence beats a fake "yes".
- Terse, evidence-first, profanity-tolerant; no AI tone.
Recon
- Full 1-65535 TCP scan; management hosts hide on 1667/2001/7000/8070/8124/8443/8920/9443/9527/9862-9869/9903/21115-21117.
- Plain HTTP to a TLS port often returns nginx
400 The plain HTTP request was sent to HTTPS port -> TLS listener.
- Probe TLS with Python
ssl + server_hostname=<SNI>; curl may fail where Python succeeds. Force TLS 1.2 on older nginx frontends.
- Fingerprints: ESXi Host Client (
ng-app="esxUiApp", ESXi Host Client), fnOS (title 飞牛/fnOS), FreshRSS (/i/), Home Assistant (/auth/providers), Traefik (/ui -> 303), RustDesk (21115-21117), Syncthing (6690).
- Vhost enumeration must be done on every resolved IP (Aliyun and Tencent hosts often differ):
curl --resolve host:443:IP https://host/ and compare 200/403/000.
- Hidden ports that accept TCP then stay silent are usually not HTTP (gRPC/custom/TLS-with-client-cert); do not burn time unless identification says otherwise.
- Resolve each hostname independently: the static/download/landing domain often points at a different origin IP than the API/ops host (e.g.
cc.badiao.cn -> a separate Aliyun nginx, while api2 -> another IP). Full-scan that IP too; it can expose SSH (OpenSSH 7.4) and a second nginx. SSH is a legitimate root path, but hydra is ~2s/attempt even at 4 threads — cap attempts and return to the appliance surface.
- On static/SPA origins use
gobuster dir ... --exclude-length <default-page-size>; a 38k-word run returning only /download and /png is a boundary, not a reason to re-run with more extensions.
See references/ops-host-recon.md for the port matrix and probing snippets, and references/web-origin-recon.md for the separate-origin/SSH lesson.
ESXi
See references/esxi-soap-login.md and scripts/esxi_login_probe.py.
/sdk RetrieveServiceContent is unauthenticated; about.fullName gives exact version/build.
- Use pyvmomi
SmartConnect for login. Hand-rolled SOAP often returns The session is not authenticated, which looks like a proxy block but is a malformed request. pyvmomi separates vim.fault.InvalidLogin (real wrong password) from NotAuthenticated.
- 5 failed logins lock root for ~15 min (
Security.AccountLockFailures). Count attempts; never blind-spray.
- Win: ESXi root -> datastore VMDKs -> mount offline -> MySQL data / app secrets / SSH keys.
fnOS (飞牛OS)
See references/fnos-pentest.md.
- <=1.15 unauthenticated path traversal:
GET /app-center-static/serviceicon/myapp/%7B0%7D/?size=../../../../usr/trim/etc/rsa_private_key.pem.
- Full RCE chain uses
ws://<host>:5666/websocket?type=main; the 1667 UI does not proxy /websocket, so 5666 must be reachable.
- 401 on
app-center-static = patched or auth_request in front; do not keep varying the path forever.
FreshRSS
See references/freshrss-bcrypt-login.md and scripts/freshrss_login_probe.py.
- Check version at
/i/?a=about; 1.29.1 has CVE-2025-54593 fixed. Admin RCE via update URL only works on old versions.
- The login is a bcrypt challenge, not plaintext. Nonce is one-time and session-bound: do not GET
/i/ between the nonce fetch and the login POST or the nonce is cleared and you get 403.
- Python
bcrypt rejects $2a$09$ salts; use crypt.crypt. bcrypt truncates input at 72 bytes.
- Wrong password also returns 403; no account lockout, but rate limiting can appear after bursts.
Home Assistant
/auth/providers shows local-only; /api/ 401; container install has no Supervisor (/api/hassio/* 404).
- Login flow:
POST /auth/login_flow then POST /auth/login_flow/<id> with client_id + username/password; create_entry = success.
- No hard lockout, but IP bans possible; keep attempts modest. Container installs limit post-login RCE value (no add-ons).
Pivot value
- ESXi root is the crown: every VM disk, including the DB VM.
- NAS backups / SSH keys / ops scripts often contain the ESXi root or DB credentials.
- App admins (FreshRSS/HA) may leak ops credentials through stored configs, but do not assume RCE.
Pitfalls
- Do not conclude "the proxy blocks login" from a hand-rolled SOAP request. Use pyvmomi first.
- Do not stop at "need credentials" when other untested surfaces remain (vhosts on other IPs, OSS STS, appliance login logic, offline JWT).
- Do not present a dead end as a reliable workflow in a report; mark unverified paths as unverified.
1---2name: hypervisor-appliance-pentest3description: "Use when ESXi/NAS/ops appliances are exposed."4metadata:5 source: https://skillmd.com/skills/yufeifeio/hypervisor-appliance-pentest6---78# Hypervisor & Ops-Appliance Pentest910Class of work: a normal app pentest dead-ends, full port scan reveals a separate **ops/management host** running hypervisor and self-hosted appliances. Goal is to turn any one of them into the DB: ESXi root -> VM disks -> MySQL/credentials, or NAS backups / ops-service secrets -> ESXi root.1112## Operating discipline (user preference)1314- When the user says "拿到数据库" / "继续深挖" / curses at a blocker, the expected response is **another executed attack**, not a status report and not a request for credentials.15- Never open with "I need a credential/foothold". Exhaust untested surfaces first: vhost enumeration on every resolved IP, TLS/SNI port matrix, appliance login algorithms, offline JWT/dictionary attacks, OSS STS, supply chain.16- Only report a hard boundary after proving the login channel is live and the password is the sole gate (e.g. pyvmomi returns `InvalidLogin`, not `NotAuthenticated`).17- No fabricated output, no dead ends dressed as success. A real "no" with evidence beats a fake "yes".18- Terse, evidence-first, profanity-tolerant; no AI tone.1920## Recon2122- Full 1-65535 TCP scan; management hosts hide on 1667/2001/7000/8070/8124/8443/8920/9443/9527/9862-9869/9903/21115-21117.23- Plain HTTP to a TLS port often returns nginx `400 The plain HTTP request was sent to HTTPS port` -> TLS listener.24- Probe TLS with Python `ssl` + `server_hostname=<SNI>`; curl may fail where Python succeeds. Force TLS 1.2 on older nginx frontends.25- Fingerprints: ESXi Host Client (`ng-app="esxUiApp"`, `ESXi Host Client`), fnOS (title 飞牛/fnOS), FreshRSS (`/i/`), Home Assistant (`/auth/providers`), Traefik (`/ui` -> 303), RustDesk (21115-21117), Syncthing (6690).26- Vhost enumeration must be done on **every** resolved IP (Aliyun and Tencent hosts often differ): `curl --resolve host:443:IP https://host/` and compare 200/403/000.27- Hidden ports that accept TCP then stay silent are usually not HTTP (gRPC/custom/TLS-with-client-cert); do not burn time unless identification says otherwise.28- Resolve **each hostname independently**: the static/download/landing domain often points at a different origin IP than the API/ops host (e.g. `cc.badiao.cn` -> a separate Aliyun nginx, while `api2` -> another IP). Full-scan that IP too; it can expose SSH (OpenSSH 7.4) and a second nginx. SSH is a legitimate root path, but hydra is ~2s/attempt even at 4 threads — cap attempts and return to the appliance surface.29- On static/SPA origins use `gobuster dir ... --exclude-length <default-page-size>`; a 38k-word run returning only `/download` and `/png` is a boundary, not a reason to re-run with more extensions.3031See `references/ops-host-recon.md` for the port matrix and probing snippets, and `references/web-origin-recon.md` for the separate-origin/SSH lesson.3233## ESXi3435See `references/esxi-soap-login.md` and `scripts/esxi_login_probe.py`.3637- `/sdk` `RetrieveServiceContent` is unauthenticated; `about.fullName` gives exact version/build.38- **Use pyvmomi `SmartConnect` for login.** Hand-rolled SOAP often returns `The session is not authenticated`, which looks like a proxy block but is a malformed request. pyvmomi separates `vim.fault.InvalidLogin` (real wrong password) from `NotAuthenticated`.39- 5 failed logins lock root for ~15 min (`Security.AccountLockFailures`). Count attempts; never blind-spray.40- Win: ESXi root -> datastore VMDKs -> mount offline -> MySQL data / app secrets / SSH keys.4142## fnOS (飞牛OS)4344See `references/fnos-pentest.md`.4546- <=1.15 unauthenticated path traversal: `GET /app-center-static/serviceicon/myapp/%7B0%7D/?size=../../../../usr/trim/etc/rsa_private_key.pem`.47- Full RCE chain uses `ws://<host>:5666/websocket?type=main`; the 1667 UI does **not** proxy `/websocket`, so 5666 must be reachable.48- 401 on `app-center-static` = patched or auth_request in front; do not keep varying the path forever.4950## FreshRSS5152See `references/freshrss-bcrypt-login.md` and `scripts/freshrss_login_probe.py`.5354- Check version at `/i/?a=about`; 1.29.1 has CVE-2025-54593 fixed. Admin RCE via update URL only works on old versions.55- The login is a bcrypt challenge, not plaintext. Nonce is one-time and session-bound: **do not GET `/i/` between the nonce fetch and the login POST** or the nonce is cleared and you get 403.56- Python `bcrypt` rejects `$2a$09$` salts; use `crypt.crypt`. bcrypt truncates input at 72 bytes.57- Wrong password also returns 403; no account lockout, but rate limiting can appear after bursts.5859## Home Assistant6061- `/auth/providers` shows local-only; `/api/` 401; container install has no Supervisor (`/api/hassio/*` 404).62- Login flow: `POST /auth/login_flow` then `POST /auth/login_flow/<id>` with `client_id` + username/password; `create_entry` = success.63- No hard lockout, but IP bans possible; keep attempts modest. Container installs limit post-login RCE value (no add-ons).6465## Pivot value6667- ESXi root is the crown: every VM disk, including the DB VM.68- NAS backups / SSH keys / ops scripts often contain the ESXi root or DB credentials.69- App admins (FreshRSS/HA) may leak ops credentials through stored configs, but do not assume RCE.7071## Pitfalls7273- Do not conclude "the proxy blocks login" from a hand-rolled SOAP request. Use pyvmomi first.74- Do not stop at "need credentials" when other untested surfaces remain (vhosts on other IPs, OSS STS, appliance login logic, offline JWT).75- Do not present a dead end as a reliable workflow in a report; mark unverified paths as unverified.