CVE-2020-15111
Summary
| CVE | CVE-2020-15111 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2020-07-20 18:15:00 UTC |
| Updated | 2021-10-07 17:14:00 UTC |
| Description | In Fiber before version 1.12.6, the filename that is given in c.Attachment() (https://docs.gofiber.io/ctx#attachment) is not escaped, and therefore vulnerable for a CRLF injection attack. I.e. an attacker could upload a custom filename and then give the link to the victim. With this filename, the attacker can change the name of the downloaded file, redirect to another site, change the authorization header, etc. A possible workaround is to serialize the input before passing it to ctx.Attachment(). |
Risk And Classification
Problem Types: CWE-74
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| ???? Escape fname by Fenny · Pull Request #579 · gofiber/fiber · GitHub | MISC | github.com | Patch, Third Party Advisory |
| CRLF vulnerability in c.Attachment() · Advisory · gofiber/fiber · GitHub | CONFIRM | github.com | Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 980484 Go (go) Security Update for github.com/gofiber/fiber (GHSA-9cx9-x2gp-9qvh)