cve/2021/CVE-2021-23357.md

18 lines
999 B
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2021-23357](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-23357)
![](https://img.shields.io/static/v1?label=Product&message=github.com%2FTykTechnologies%2Ftyk%2Fgateway&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3E%3D%200%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=Directory%20Traversal&color=brighgreen)
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/captcha-n00b/CVEcrystalyer