Skip to content
OpenAdvisories

Weakness (CWE)

CWE-778: Insufficient Logging

Base Draft

When a security-critical event occurs, the product either does not record the event or omits important details about the event when logging it.

How to prevent it (4 mitigations)
  1. Architecture and Design

    Use a centralized logging mechanism that supports multiple levels of detail.

  2. Implementation

    Ensure that all security-related successes and failures can be logged. When storing data in the cloud (e.g., AWS S3 buckets, Azure blobs, Google Cloud Storage, etc.), use the provider's controls to enable and capture detailed logging information.

  3. Operation

    Be sure to set the level of logging appropriately in a production environment. Sufficient data should be logged to enable system administrators to detect attacks, diagnose errors, and recover from attacks. At the same time, logging too much data (CWE-779) can cause the same problems, including unexpected costs when using a cloud environment.

  4. Operation

    To enable storage logging using Azure's Portal, navigate to the name of the Storage Account, locate Monitoring (CLASSIC) section, and select Diagnostic settings (classic). For each of the various properties (blob, file, table, queue), ensure the status is properly set for the desired logging data. If using PowerShell, the Set-AzStorageServiceLoggingProperty command could be called using appropriate -ServiceType, -LoggingOperations, and -RetentionDays arguments.

Source: MITRE CWE-778

4 results · Clear filters · Feed

  • High 7.5

    Insufficient authentication logging in Progress MarkLogic Server

    Progress MarkLogic Server 12.x releases before 12.1.0 and 11.x releases before 11.3.7 do not consistently record successful authentication events in audit logs, which could limit customers' ability to detect and investigate unauthorized access or credential m…

  • High 8.2

    phpMyFAQ 3.1.0 through 4.1.6 Authentication Bypass via LDAP

    phpMyFAQ versions 3.1.0 through 4.1.6 contain an authentication bypass vulnerability in AuthLdap::create(). When LDAP authentication is enabled, after a successful LDAP bind the code calls User::setStatus('active') unconditionally, which overwrites the accoun…

  • High 8.8

    Unauthorized access to Kubernetes secrets in Juju

    In Juju from version 3.0.0 through 3.6.18, the authorization of the "secret-set" tool is not performed correctly, which allows a grantee to update the secret content, and can lead to reading or updating other secrets. When the "secret-set" tool logs an error …

  • High 7.5

    An Information Disclosure vulnerability exists in Opay Mobile application 1.5.1.26 and maybe be higher in the logcat ap…