Обход контроля доступа в сопоставлении путей действий в Apache Struts 2 Core
Apache Struts 2 Core
Кратко
Apache Struts, веб-фреймворк Apache Software Foundation, может сопоставить запрос с действием, отличным от того, которое авторизовал контейнер сервлетов, фильтр или обратный прокси, поскольку он извлекает путь из необработанного запроса, а не из декодированного и нормализованного пути. Таким образом, злоумышленник может обойти ограничения доступа по URL-шаблону, установленные перед Struts, и достичь действий, которые должны были быть заблокированы с помощью excludePattern.
Резюме сгенерировано ИИ по данным источников и переведено автоматически.
Исправление
Исправленная версия не указана.
Затронутые версии
| org.apache.struts:struts2-coreMaven | с 2.1.2 до 2.3.37 с 2.5.0 до 2.5.33 с 6.0.0 до 6.12.0 с 7.0.0 до 7.4.0 |
Оригинальное описание (EN)
Оригинальный заголовок: Apache Struts 2 Core access control bypass in action path mapping
Interpretation conflict vulnerability in Apache Struts. When deciding which action a request invokes, Struts derived the path from the request as it was received rather than from the path the servlet container had already decoded and normalised. The two can differ, so a request can be authorized by the container, by a filter or by a reverse proxy under one path and executed by Struts as a different action. Where access to actions is restricted by URL pattern in front of Struts, such as a security-constraint, a URL-pattern filter or a proxy rule, that restriction can be bypassed. For the same reason, a request could be handled by Struts although its path matched struts.action.excludePattern. Applications that enforce authorization inside Struts, for example with an interceptor on the action, apply it to the action that actually runs and are not affected by the bypass. This issue affects Apache Struts: from 2.1.2 through 2.3.37, from 2.5.0 through 2.5.33, from 6.0.0 through 6.12.0, from 7.0.0 through 7.4.0. Users are recommended to upgrade to version 6.13.0 or 7.5.0, which fixes the issue.