Ad
 
Learn More

One extra slash is the Important line in Skipper

Skipper v0.28.74 fixes a Critical OPA bypass: the router cleaned the path but opaAuthorizeRequest gave the Rego policy the raw one, so //admin could slip past a deny. Upgrade, then replay odd path spellings against protected routes.

Written by Watch Changelog Team

•2 min read

One extra slash is the Important line in Skipper

Zalando shipped Skipper v0.28.74 on November 9 with a single change that matters, the fix for GHSA-q9xq-w3q4-p9jc, and we flagged it as Important on Skipper. The advisory is rated Critical at CVSS 9.1 and covers every release from 0.18.0 through 0.28.73. If you run Skipper with -enable-open-policy-agent and any route carries opaAuthorizeRequest, this is the upgrade to do today.

The bug is two parts of the same request disagreeing about the path. Skipper cleans the path before it picks a route, so Path("/admin") matches /admin, //admin, /./admin, /%2e/admin and /x/../admin. Before the fix, the OPA filter handed the Rego policy the raw request target instead. The router saw /admin and the policy saw //admin. A default-deny policy that grants access to anything not starting with /admin then lets an unauthenticated caller in with one extra character. The reporter's proof of concept flipped exactly that policy from 403 to 200 on all four spellings, while plain /admin still got 403.

You are exposed if all of these hold:

  • The OPA integration is on and at least one route uses opaAuthorizeRequest.
  • The policy reads input.attributes.request.http.path with startswith, a regex, or anything looser than exact equality. Exact equality, which is what the Skipper tutorial Rego uses, happens to fail closed.
  • Bonus risk if the policy was written for Envoy ext_authz first. Skipper's docs say its policy input follows the opa-envoy-plugin shape, and the reporter points out that Envoy normalizes the path before ext_authz by default, so a policy that was safe behind Envoy was not automatically safe here.

The advisory is honest about one limit. On a route that proxies to a real backend, reaching the protected content also needs the origin to treat the odd spelling as the canonical path. The reporter tested nginx with its default merge_slashes on, and it served /admin for every spelling. I would assume your origin does the same until you have checked.

What I would do: upgrade to v0.28.74 or later, which is also published as a multiarch image at ghcr.io/zalando/skipper. Then replay //admin, /./admin, /%2e/admin and /x/../admin against each OPA protected route and confirm they get the same answer as the canonical path. Search access logs on those routes for doubled slashes, dot segments and %2e, since the window goes back to 0.18.0. If the upgrade has to wait, a stopgap is a rule at the top of the policy that denies any path containing // or a dot segment. The rest of the day's flagged changes are on /sources/important.

Official notes: Skipper v0.28.74 and the GHSA-q9xq-w3q4-p9jc advisory.