[M-3] POST /status discloses any person's full certificate by IC enumeration (PDPA exposure) #15
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
With just a client JWT, /status returns the full DER certificate, serial and dates for an arbitrary icNumber (local or via Trustgate SOAP). Distinct error responses for existing vs non-existing ICs confirm existence.
Evidence
lib/mdid_ws_web/controllers/cert_management_controller.ex:472-524, 557-570Impact
Privacy exposure of national identifiers and personal certificates (Malaysian PDPA); MyKad space is 12 structured digits — enumeration is cheap.
Fix
Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).Verified fixed on main (
1b6216b): per-client /status throttle plus status_full scope gating the DER (status only otherwise).Reopening: this was closed on the per-client throttle plus the status_full scope (DER only with status_full). The issue's first fix item, require a caller-to-subject binding for full-certificate responses, was not built: any client with the status scope can still query any IC and learn existence and validity dates. Throttle is 60/min per client, per node, in memory. Decide whether the throttle and scope are enough or whether a binding (for example a client-to-IC or client-to-organisation allowlist) is required.