Vulnerability · Published Mar 15, 2021 · Assigned by snyk
CVE-2021-23357Directory Traversal
Low 3.3
In plain English
A low-severity security flaw in github.com/TykTechnologies/tyk/gateway. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities).
Official description
All versions of package github.com/tyktechnologies/tyk/gateway 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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | github.com/TykTechnologies/tyk/gateway | 0 – before unspecified |
References
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516 x_refsource_MISC
- https://github.com/TykTechnologies/tyk/issues/3390 x_refsource_MISC