Arbitrary File Overwrite Affecting github.com/thoughtworks/talisman/report package, versions <1.6.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Overwrite vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTHOUGHTWORKSTALISMANREPORT-598669
  • published14 Aug 2020
  • disclosed14 Aug 2020
  • creditdcRUSTy

Introduced: 14 Aug 2020

CVE NOT AVAILABLE CWE-22  (opens in a new tab)

How to fix?

Upgrade github.com/thoughtworks/talisman/report to version 1.6.0 or higher.

Overview

github.com/thoughtworks/talisman/report is a tool that installs a hook to your repository to ensure that potential secrets or sensitive information do not leave the developer's workstation.

Affected versions of this package are vulnerable to Arbitrary File Overwrite. When scanning a repository that includes a symlink under talisman_reports/data/report.json, talisman will overwrite the file pointed by the symlink.

PoC by dcRUSTy

  • Execute echo 123 > /tmp/data
  • Scan a repo with talisman_reports/data/report.json symlinked to /tmp/data
  • Run talisman -s
  • Observe content of /tmp/data

References

CVSS Base Scores

version 3.1