[M-7] Subject-DN validation is a weak blacklist — no control chars, RTL overrides, length caps, or IC format check #19
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#19
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
@blacklisted_charsmisses NUL/control characters, zero-width/RTL override (U+202E name spoofing), backslash,%; no length caps; serialNumber not constrained to a MyKad pattern (validation removed in d69c944).Evidence
lib/mdid_ws/cert_management/subject_validator.ex:7, 44-51Impact
Name-spoofing via bidi/zero-width characters and malformed subjects in issued certificates.
Fix
^\d{12}$, CN limited to letters/space/'()-)Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).