CVE Vulnerabilities

CVE-2018-25058

Use of Web Link to Untrusted Target with window.opener Access

Published: Dec 29, 2022 | Modified: Nov 21, 2024
CVSS 3.x
6.1
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

A vulnerability classified as problematic has been found in Twitter-Post-Fetcher up to 17.x. This affects an unknown part of the file js/twitterFetcher.js of the component Link Target Handler. The manipulation leads to use of web link to untrusted target with window.opener access. It is possible to initiate the attack remotely. Upgrading to version 18.0.0 is able to address this issue. The name of the patch is 7d281c6fb5acbc29a2cad295262c1f0c19ca56f3. It is recommended to upgrade the affected component. The identifier VDB-217017 was assigned to this vulnerability.

Weakness

The web application produces links to untrusted external sites outside of its sphere of control, but it does not properly prevent the external site from modifying security-critical properties of the window.opener object, such as the location property.

Affected Software

Name Vendor Start Version End Version
Twitter-post-fetcher Twitter-post-fetcher_project * 18.0.0 (excluding)

Potential Mitigations

  • When creating a link to an external document using the tag with a defined target, for example “_blank” or a named frame, provide the rel attribute with a value “noopener noreferrer”.
  • If opening the external document in a new window via javascript, then reset the opener by setting it equal to null.
  • Do not use “_blank” targets. However, this can affect the usability of the application.

References