-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
securityAn issue that impacts securityAn issue that impacts security
Description
https://github.com/DMTF/libspdm/blob/main/library/spdm_secured_message_lib/libspdm_secmes_session.c contains prints such as
libspdm/library/spdm_secured_message_lib/libspdm_secmes_session.c
Lines 92 to 94 in bf90209
| LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "key (0x%zx) - ", key_length)); | |
| LIBSPDM_INTERNAL_DUMP_DATA(key, key_length); | |
| LIBSPDM_DEBUG((LIBSPDM_DEBUG_INFO, "\n")); |
LIBSPDM_DEBUG_PRINT_ENABLE in production for diagnostic prints might be surprised to learn that session secrets could make their way to a log file. Two solutions to resolve this are
- Remove the prints entirely.
- Introduce a new macro such as
LIBSPDM_DEBUG_PRINT_SECRET_ENABLEthat is disabled by default.
Metadata
Metadata
Assignees
Labels
securityAn issue that impacts securityAn issue that impacts security