An issue was discovered in PHPMailer before 5.2.22. PHPMailers msgHTML method applies transformations to an HTML document to make it usable as an email message body. One of the transformations is to convert relative image URLs into attachments using a script-provided base directory. If no base directory is provided, it resolves to /, meaning that relative image URLs get treated as absolute local file paths and added as attachments. To form a remote vulnerability, the msgHTML method must be called, passed an unfiltered, user-supplied HTML document, and must not set a base directory.
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Phpmailer | Phpmailer_project | * | 5.2.21 (including) |
Libphp-phpmailer | Ubuntu | artful | * |
Libphp-phpmailer | Ubuntu | esm-apps/xenial | * |
Libphp-phpmailer | Ubuntu | precise | * |
Libphp-phpmailer | Ubuntu | trusty | * |
Libphp-phpmailer | Ubuntu | upstream | * |
Libphp-phpmailer | Ubuntu | xenial | * |
Libphp-phpmailer | Ubuntu | yakkety | * |
Libphp-phpmailer | Ubuntu | zesty | * |
There are many different kinds of mistakes that introduce information exposures. The severity of the error can range widely, depending on the context in which the product operates, the type of sensitive information that is revealed, and the benefits it may provide to an attacker. Some kinds of sensitive information include:
Information might be sensitive to different parties, each of which may have their own expectations for whether the information should be protected. These parties include:
Information exposures can occur in different ways:
It is common practice to describe any loss of confidentiality as an “information exposure,” but this can lead to overuse of CWE-200 in CWE mapping. From the CWE perspective, loss of confidentiality is a technical impact that can arise from dozens of different weaknesses, such as insecure file permissions or out-of-bounds read. CWE-200 and its lower-level descendants are intended to cover the mistakes that occur in behaviors that explicitly manage, store, transfer, or cleanse sensitive information.