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.
References
Link | Resource |
---|---|
https://github.com/TykTechnologies/tyk/issues/3390 | Exploit Third Party Advisory |
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMTYKTECHNOLOGIESTYKGATEWAY-1078516 | Third Party Advisory |
History
No history.
MITRE Information
Status: PUBLISHED
Assigner: snyk
Published: 2021-03-15T00:00:00
Updated: 2021-03-15T16:45:19
Reserved: 2021-01-08T00:00:00
Link: CVE-2021-23357
JSON object: View
NVD Information
Status : Analyzed
Published: 2021-03-15T17:15:21.597
Modified: 2021-03-18T19:04:47.027
Link: CVE-2021-23357
JSON object: View
Redhat Information
No data.
CWE