jenkinsci / lucene-search-plugin

Jenkins plugin for searching job data via Lucene or Solr
https://plugins.jenkins.io/lucene-search
MIT License
5 stars 12 forks source link

Escape all templated text in search result screen [CVE-2022-36922] #56

Closed tdraebing closed 1 year ago

tdraebing commented 1 year ago

In the search results screen the query was displayed without escaping it first. That allowed to inject arbitrary code like javascript. This was possible because the feature of Jelly to escape everything by default was disabled.

This fixes https://www.jenkins.io/security/advisory/2022-07-27/#SECURITY-2812.

This is required for this plugin release request: https://github.com/jenkins-infra/repository-permissions-updater/issues/2947