Files
apex-twin/tests
lotherk 60075eb30f apex-twin 1.9.0: SSTI, XXE, LDAP probes and SSH key audit
Red:
- ssti_probe: five template payloads ({{1337*7}}, ${1337*7}, #{1337*7},
  <%= 1337*7 %>, {{1337*'7'}}) with expected outputs, after a baseline request
  clears pages that already contain the numbers. Reports evaluation with the
  likely engine, reflection or template errors; GET query or POST form;
  evaluations saved as evidence.
- xxe_probe: XML with a DOCTYPE external entity pointing at a loopback listener
  this process opens, in element and attribute form (optionally wrapped in a
  form field). A callback proves the parser resolved it; parser error
  signatures are reported too.
- ldap_probe: LDAPv3 anonymous simple bind, then a rootDSE search (baseObject
  '', scope base, present(objectClass)); reports namingContexts, vendorName,
  supportedLDAPVersion and the other attributes; an accepted anonymous bind is
  audited.

Blue:
- ssh_key_audit: authorized_keys under /etc/ssh, /root/.ssh, /home/*/.ssh and
  the state dir, plus private keys (id_* and /etc/ssh/ssh_host_*_key). Flags
  unrestricted entries, ssh-rsa/ssh-dss, duplicate keys and private keys
  readable beyond their owner; optional root prefix for a mounted image.

Tests: a template engine that evaluates Jinja and EL payloads, an XML endpoint
that fetches the external entity, LDAP servers that accept and reject the
anonymous bind with a rootDSE, and an SSH key tree with restricted,
unrestricted, duplicate and weak keys plus three private-key modes. 569 checks,
ASan suite green, analyze clean, release-check green including distcheck 1.9.0.

The LDAP bind parser had to be structural: the result code is an enum TLV
(0a 01 code), not three raw bytes after the protocol-op tag.
2026-11-21 13:13:14 +00:00
..