PT-2020-14193 · Fiber · Fiber
Abdshaleh
+2
·
Published
2020-07-20
·
Updated
2021-10-07
·
CVE-2020-15111
CVSS v2.0
5.8
Medium
| Vector | AV:N/AC:M/Au:N/C:P/I:P/A:N |
Name of the Vulnerable Software and Affected Versions
Fiber versions prior to 1.12.6
Description
The issue arises from improper input sanitization in the
c.Attachment() function, allowing a maliciously constructed filename to inject additional headers into an HTTP response. This can lead to a CRLF injection attack, where an attacker could upload a custom filename, change the name of the downloaded file, redirect to another site, or change the authorization header.Recommendations
For versions prior to 1.12.6, a possible workaround is to serialize the input before passing it to
ctx.Attachment(). This issue has been patched in version 1.12.6, so updating to this version or later will resolve the issue.Fix
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Fiber