GitHub Advisory Database
GHSA-xc66-mg8r-q6r5
Apache Wicket vulnerable to CSRF attacks
Details
Apache Wicket 6.x before 6.25.0, 7.x before 7.5.0, and 8.0.0-M1 provide a CSRF prevention measure that fails to discover some cross origin requests. The mitigation is to not only check the Origin HTTP header, but also take the Referer HTTP header into account when no Origin was provided. Furthermore, not all Wicket server side targets were subjected to the CSRF check. This was also fixed.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.apache.wicket:wicket-core | From 6.20.0 before 6.25.0 (fixed in 6.25.0) |
| Maven | org.apache.wicket:wicket-core | From 7.0.0 before 7.5.0 (fixed in 7.5.0) |
| Maven | org.apache.wicket:wicket-core | From 8.0.0-M1 before 8.0.0-M2 (fixed in 8.0.0-M2) |