Alpine is a scaffolding library in Java. Alpine prior to version 1.10.4 allows Authentication Filter bypass. The AuthenticationFilter relies on the request URI to evaluate if the user is accessing the swagger endpoint. By accessing a URL with a path such as /api/foo;%2fapi%2fswagger the contains condition will hold and will return from the authentication filter without aborting the request. Note that the principal object will not be assigned and therefore the issue wont allow user impersonation. This issue has been fixed in version 1.10.4. There are no known workarounds.
{ "nvd_published_at": "2022-12-28T19:15:09Z", "cwe_ids": [ "CWE-287", "CWE-697" ], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2024-08-05T21:18:58Z" }