Directory Traversal

Affecting github.com/tyktechnologies/tyk/gateway package, versions *

Report new vulnerabilities
Do your applications use this vulnerable package? Test your applications

Overview

github.com/TykTechnologies/tyk/gateway is a Tyk Gateway API

Affected versions of this package are vulnerable to Directory Traversal via the handleAddOrUpdateApi function.

This function is able to delete arbitrary JSON files on the disk where Tyk is running via the management API. The APIID is provided by the user and this value is then used to create a file on disk. If there is a file found with the same name then it will be deleted and then re-created with the contents of the API creation request.

Remediation

There is no fixed version for github.com/TykTechnologies/tyk/gateway.

References

CVSS Score

3.3
low severity
  • Attack Vector
    Local
  • Attack Complexity
    High
  • Privileges Required
    Low
  • User Interaction
    Required
  • Scope
    Unchanged
  • Confidentiality
    Low
  • Integrity
    Low
  • Availability
    None
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
Credit
calabdean
CVE
CVE-2021-23357
CWE
CWE-22
Snyk ID
SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516
Disclosed
19 Nov, 2020
Published
15 Mar, 2021