Skip to content

SMTP Mail Credentials Disclosed in Error Log

High
freescout-helpdesk published GHSA-7wcq-2qmv-mvcm Mar 12, 2024

Package

No package listed

Affected versions

< 1.8.124

Patched versions

1.8.124

Description

Description:

A High security vulnerability has been identified in the Free Scout Application, which exposes SMTP server credentials used by an organization in the application to users of the application. This issue arises from the application storing complete stack traces of exceptions in its database. The sensitive information is then inadvertently disclosed to users via the /conversation/ajax-html/send_log?folder_id=&thread_id={id} endpoint. The stack trace reveals value of parameters, including the username and password, passed to the Swift_Transport_Esmtp_Auth_LoginAuthenticator->authenticate() function.

Impact:

Exploiting this vulnerability allows an attacker to gain unauthorized access to SMTP server credentials. With this sensitive information in hand, the attacker can potentially send unauthorized emails from the compromised SMTP server, posing a severe threat to the confidentiality and integrity of email communications. This could lead to targeted attacks on both the application users and the organization itself, compromising the security of email exchange servers.

Mitigation:

To address this vulnerability, it is essential to adopt the following measures:

  1. Avoid Storing Complete Stack Traces:
    • Modify the application's exception-handling mechanism to avoid storing complete stack traces in the database. Only generic error information should be retained to prevent the exposure of sensitive credentials.
  2. Sensitive Data Redaction:
    • Implement redaction mechanisms to filter and exclude sensitive information, such as SMTP server credentials, from exception stack traces. This ensures that only essential details are logged.
  3. Enhance Logging Practices:
    • Review and enhance the application's logging practices to strike a balance between providing useful debugging information and protecting sensitive data. Log only what is necessary for diagnostics without compromising security.

Steps to Reproduce:

  • Go to the demo FreeScout Application, provided by FreeScout at https://demo.freescout.net/.
  • Login as a support agent.
  • Create a new conversation, with dummy data and send the message.
  • Wait for 5 minutes.
  • Go to the conversation that you initiated by going to the Sent Tab.
  • You will see a "Message not sent to customer" error.
  • Click on View log, and you will see a stack trace error.
  • Locate the parameters being sent to the authenticate function. In the screenshots, I have highlighted the credentials for reference.

Evidence:

image

image

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N

CVE ID

CVE-2024-28186

Weaknesses

No CWEs

Credits