При использовании протокола Apache JServ (AJP) необходимо соблюдать осторожность при доверии входящим соединениям к Apache Tomcat. Tomcat рассматривает соединения AJP как имеющие более высокий уровень доверия, чем, например, аналогичное соединение HTTP. Если такие соединения доступны злоумышленнику, их можно использовать неожиданными способами.
В Apache Tomcat версий 9.0.0.M1–9.0.0.30, 8.5.0–8.5.50 и 7.0.0–7.0.99 Tomcat поставлялся с включенным по умолчанию соединителем AJP, который прослушивал все настроенные IP-адреса. Ожидалось (и рекомендовалось в руководстве по безопасности), что этот соединитель будет отключен, если он не потребуется. В этом отчете об уязвимостях был указан механизм, который позволял: - возвращать произвольные файлы из любого места веб-приложения - обрабатывать любой файл в веб-приложении как JSP.
Кроме того, если веб-приложение допускало загрузку файлов и сохраняло эти файлы в веб-приложении (или злоумышленник мог контролировать содержимое веб-приложения какими-либо другими средствами), то это, наряду с возможностью обработки файла как JSP, делало возможным удаленное выполнение кода. Важно отметить, что меры по снижению риска необходимы только в том случае, если порт AJP доступен ненадежным пользователям. Пользователи, желающие применить подход глубокой защиты и заблокировать вектор, позволяющий возвращать произвольные файлы и выполнять их в виде JSP, могут обновиться до Apache Tomcat 9.0.31, 8.5.51 или 7.0.100 или более поздней версии.
В конфигурацию соединителя AJP по умолчанию в версии 9.0.31 был внесен ряд изменений, чтобы ужесточить конфигурацию по умолчанию. Вполне вероятно, что пользователям, обновляющимся до 9.0.31, 8.5.51 или 7.0.100 или более поздней версии, потребуется внести небольшие изменения в свои конфигурации.
Показать оригинальное описание (EN)
When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Tomcat treats AJP connections as having higher trust than, for example, a similar HTTP connection. If such connections are available to an attacker, they can be exploited in ways that may be surprising. In Apache Tomcat 9.0.0.M1 to 9.0.0.30, 8.5.0 to 8.5.50 and 7.0.0 to 7.0.99, Tomcat shipped with an AJP Connector enabled by default that listened on all configured IP addresses. It was expected (and recommended in the security guide) that this Connector would be disabled if not required. This vulnerability report identified a mechanism that allowed: - returning arbitrary files from anywhere in the web application - processing any file in the web application as a JSP Further, if the web application allowed file upload and stored those files within the web application (or the attacker was able to control the content of the web application by some other means) then this, along with the ability to process a file as a JSP, made remote code execution possible. It is important to note that mitigation is only required if an AJP port is accessible to untrusted users. Users wishing to take a defence-in-depth approach and block the vector that permits returning arbitrary files and execution as JSP may upgrade to Apache Tomcat 9.0.31, 8.5.51 or 7.0.100 or later. A number of changes were made to the default AJP Connector configuration in 9.0.31 to harden the default configuration. It is likely that users upgrading to 9.0.31, 8.5.51 or 7.0.100 or later will need to make small changes to their configurations.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 38
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Apache Geode
cpe:2.3:a:apache:geode:1.12.0:*:*:*:*:*:*:*
|
— | — |
|
Apache Tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
|
7.0.0
|
7.0.100
|
|
Apache Tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
|
8.5.0
|
8.5.51
|
|
Apache Tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
|
9.0.0
|
9.0.31
|
|
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*
|
— | — |
|
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
|
— | — |
|
Fedoraproject Fedora
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
|
— | — |
|
Oracle Agile_Engineering_Data_Management
cpe:2.3:a:oracle:agile_engineering_data_management:6.2.1.0:*:*:*:*:*:*:*
|
— | — |
|
Oracle Agile_Product_Lifecycle_Management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.3:*:*:*:*:*:*:*
|
— | — |
|
Oracle Agile_Product_Lifecycle_Management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.5:*:*:*:*:*:*:*
|
— | — |
|
Oracle Agile_Product_Lifecycle_Management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.6:*:*:*:*:*:*:*
|
— | — |
|
Oracle Communications_Element_Manager
cpe:2.3:a:oracle:communications_element_manager:8.1.1:*:*:*:*:*:*:*
|
— | — |
|
Oracle Communications_Element_Manager
cpe:2.3:a:oracle:communications_element_manager:8.2.0:*:*:*:*:*:*:*
|
— | — |
|
Oracle Communications_Element_Manager
cpe:2.3:a:oracle:communications_element_manager:8.2.1:*:*:*:*:*:*:*
|
— | — |
|
Oracle Communications_Instant_Messaging_Server
cpe:2.3:a:oracle:communications_instant_messaging_server:10.0.1.4.0:*:*:*:*:*:*:*
|
— | — |
|
Oracle Health_Sciences_Empirica_Inspections
cpe:2.3:a:oracle:health_sciences_empirica_inspections:1.0.1.2:*:*:*:*:*:*:*
|
— | — |
|
Oracle Health_Sciences_Empirica_Signal
cpe:2.3:a:oracle:health_sciences_empirica_signal:7.3.3:*:*:*:*:*:*:*
|
— | — |
|
Oracle Hospitality_Guest_Access
cpe:2.3:a:oracle:hospitality_guest_access:4.2.0:*:*:*:*:*:*:*
|
— | — |
|
Oracle Hospitality_Guest_Access
cpe:2.3:a:oracle:hospitality_guest_access:4.2.1:*:*:*:*:*:*:*
|
— | — |
|
Oracle Instantis_Enterprisetrack
cpe:2.3:a:oracle:instantis_enterprisetrack:*:*:*:*:*:*:*:*
|
17.1
|
<= 17.3
|
|
Oracle Mysql_Enterprise_Monitor
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
|
— |
<= 4.0.12
|
|
Oracle Mysql_Enterprise_Monitor
cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*
|
8.0.0
|
<= 8.0.20
|
|
Oracle Siebel_Ui_Framework
cpe:2.3:a:oracle:siebel_ui_framework:*:*:*:*:*:*:*:*
|
— |
<= 20.5
|
|
Oracle Transportation_Management
cpe:2.3:a:oracle:transportation_management:6.3.7:*:*:*:*:*:*:*
|
— | — |
|
Oracle Workload_Manager
cpe:2.3:a:oracle:workload_manager:12.2.0.1:*:*:*:*:*:*:*
|
— | — |
|
Oracle Workload_Manager
cpe:2.3:a:oracle:workload_manager:18c:*:*:*:*:*:*:*
|
— | — |
|
Oracle Workload_Manager
cpe:2.3:a:oracle:workload_manager:19c:*:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
|
— | — |
|
Opensuse Leap
cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
|
— | — |
|
Blackberry Good_Control
cpe:2.3:a:blackberry:good_control:*:*:*:*:*:*:*:*
|
— |
<= 5.2.58.38
|
|
Blackberry Workspaces_Server
cpe:2.3:a:blackberry:workspaces_server:7.0.1:*:*:*:*:*:*:*
|
— | — |
|
Blackberry Workspaces_Server
cpe:2.3:a:blackberry:workspaces_server:7.1.2:*:*:*:*:*:*:*
|
— | — |
|
Blackberry Workspaces_Server
cpe:2.3:a:blackberry:workspaces_server:8.1.0:*:*:*:*:*:*:*
|
— | — |
|
Blackberry Workspaces_Server
cpe:2.3:a:blackberry:workspaces_server:9.0:*:*:*:*:*:*:*
|
— | — |
|
Netapp Data_Availability_Services
cpe:2.3:a:netapp:data_availability_services:-:*:*:*:*:*:*:*
|
— | — |
|
Netapp Oncommand_System_Manager
cpe:2.3:a:netapp:oncommand_system_manager:*:*:*:*:*:*:*:*
|
3.0.0
|
<= 3.1.3
|