[M-4] Internal error details leaked to clients via reason: inspect(reason) #16

Closed
opened 2026-11-14 18:28:47 +01:00 by amiryahaya · 0 comments
Owner

Finding

Several response paths include reason: inspect(reason), which can carry Mnesia abort reasons, SOAP internals and file paths (e.g. {:private_key_read_failed, path, reason}).

Evidence

  • lib/mdid_ws_web/controllers/cert_management_controller.ex:33, 38, 66, 71, 119, 164, 322, 348

Impact

Information disclosure useful to attackers (internal paths, state, library internals).

Fix

  • Log details server-side; return opaque error codes
  • Centralize error rendering (see M-16)

Line numbers refer to the initial import commit 282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).

## Finding Several response paths include `reason: inspect(reason)`, which can carry Mnesia abort reasons, SOAP internals and file paths (e.g. `{:private_key_read_failed, path, reason}`). ## Evidence - `lib/mdid_ws_web/controllers/cert_management_controller.ex:33, 38, 66, 71, 119, 164, 322, 348` ## Impact Information disclosure useful to attackers (internal paths, state, library internals). ## Fix - [ ] Log details server-side; return opaque error codes - [ ] Centralize error rendering (see M-16) _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Sign in to join this conversation.
No description provided.