Описание
XWiki's REST APIs don't enforce any limits, leading to unavailability and OOM in large wikis
Impact
XWiki's REST API doesn't enforce any limits for the number of items that can be requested in a single request at the moment. Depending on the number of pages in the wiki and the memory configuration, this can lead to slowness and unavailability of the wiki. As an example, the /rest/wikis/xwiki/spaces resource returns all spaces on the wiki by default, which are basically all pages.
Patches
XWiki 17.7.0RC1, 17.4.4 and 16.10.11 introduce a configurable limit, limiting responses to 1000 items by default. Requesting larger limits leads to an error now.
Workarounds
We're not aware of any workaround, except denying access to the affected REST resources in a proxy in front of XWiki.
Пакеты
org.xwiki.platform:xwiki-platform-rest-server
< 16.10.11
16.10.11
org.xwiki.platform:xwiki-platform-rest-server
>= 17.0.0-rc-1, < 17.4.4
17.4.4
org.xwiki.platform:xwiki-platform-rest-server
>= 17.5.0-rc-1, < 17.7.0-rc-1
17.7.0-rc-1
Связанные уязвимости
XWiki is an open-source wiki software platform. Versions 16.10.10 and below, 17.0.0-rc-1 through 17.4.3 and 17.5.0-rc-1 through 17.6.0 contain a REST API which doesn't enforce any limits for the number of items that can be requested in a single request at the moment. Depending on the number of pages in the wiki and the memory configuration, this can lead to slowness and unavailability of the wiki. As an example, the /rest/wikis/xwiki/spaces resource returns all spaces on the wiki by default, which are basically all pages. This issue is fixed in versions 17.4.4 and 16.10.11.
Уязвимость интерфейса REST API платформы создания совместных веб-приложений XWiki Platform XWiki, позволяющая нарушителю вызвать отказ в обслуживании