It's possible to execute anything with the right of the Scheduler Application sheet page.
To reproduce:
{{/code}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("Hello " + "from groovy!"){{/groovy} {{/async}}This has been patched in XWiki 14.10.3 and 15.0 RC1.
While the fix in the scheduler itself is easy, it relies on the code macro source parameter, which was introduced in 14.10.2 so you have to upgrade to benefit from it.
https://jira.xwiki.org/browse/XWIKI-20295 https://jira.xwiki.org/browse/XWIKI-20462
If you have any questions or comments about this advisory:
{
"cwe_ids": [
"CWE-74"
],
"github_reviewed": true,
"github_reviewed_at": "2023-04-20T22:17:16Z",
"nvd_published_at": "2023-04-19T00:15:09Z",
"severity": "CRITICAL"
}