Test JWT mint endpoint for trailing slash bypass

AuthenticationDiscovery

Written with a model's help from “Stealing the Artifact – JFrog Artifactory Vulnerability” by Daniil Vylegzhanin on NetSPI Technical Blog. Read the writeup before relying on it.

Try sending an HTTP POST request to the /api/v1/aws/token/ endpoint with a trailing slash. If the server does not strip the trailing slash, the AntPathMatcher may fail to match the URL, bypassing authentication. Look for a response that indicates the authentication filter was skipped and the anonymous principal was used instead. This can be confirmed by checking the response for an anonymous user role or a lack of authentication headers. To test, send a request to https://target.com/api/v1/aws/token/ with a trailing slash and verify the response.

Follow #authentication-bypass or #jfrog-artifactory for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.