Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2023-29401

Опубликовано: 08 июн. 2023
Источник: redhat
CVSS3: 4.3
EPSS Низкий

Описание

The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.

A flaw was found in the Gin-Gonic Gin Web Framework. Affected versions of this package could allow a remote attacker to bypass security restrictions caused by improper input validation by the filename parameter of the Context.FileAttachment function. An attacker can modify the Content-Disposition header by using a specially-crafted attachment file name.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/lokistack-gateway-rhel9Not affected
Migration Toolkit for Applications 6mta/mta-admin-addon-rhel8Will not fix
Migration Toolkit for Applications 6mta/mta-hub-rhel8Not affected
Migration Toolkit for Applications 6mta/mta-windup-addon-rhel9Will not fix
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel8-operatorNot affected
OpenShift Serverlessopenshift-serverless-1/ingress-rhel8-operatorWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2acm-multicluster-globalhub-agent-containerAffected
Red Hat Advanced Cluster Management for Kubernetes 2rbac-query-proxy-containerNot affected

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-494
https://bugzilla.redhat.com/show_bug.cgi?id=2216957golang-github-gin-gonic-gin: Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

EPSS

Процентиль: 59%
0.00383
Низкий

4.3 Medium

CVSS3

Связанные уязвимости

CVSS3: 4.3
ubuntu
больше 2 лет назад

The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.

CVSS3: 4.3
nvd
больше 2 лет назад

The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. For example, a filename of "setup.bat";x=.txt" will be sent as a file named "setup.bat". If the FileAttachment function is called with names provided by an untrusted source, this may permit an attacker to cause a file to be served with a name different than provided. Maliciously crafted attachment file name can modify the Content-Disposition header.

CVSS3: 4.3
debian
больше 2 лет назад

The filename parameter of the Context.FileAttachment function is not p ...

CVSS3: 4.3
github
больше 2 лет назад

Gin Web Framework does not properly sanitize filename parameter of Context.FileAttachment function

EPSS

Процентиль: 59%
0.00383
Низкий

4.3 Medium

CVSS3