OAuth 2.0 Analysis with Oauch
Description
I run github.com/
- invalidate authorization code after the first use datatracker.ietf.org/
doc/ html/ rfc9700#section-4.2.4 (4th paragraph) - rejects PKCE code verifiers that are too short (less than 34 characters). datatracker.ietf.org/
doc/ html/ rfc7636#section-4.1 - use the X-Frame-Options header to avoid framing of the authorization page datatracker.ietf.org/
doc/ html/ rfc9700#name-clickjacking - suppress the 'Referer' header: datatracker.ietf.org/
doc/ html/ rfc9700#section-4.2.4 (1st paragraph)
Details
See the PDF attached. The localhost links are available on oauch.io/
PoC
Clone github.com/
cd src/OAuch
podman build -t oauch .Start the container
podman run -p 8443:443 -v ./db:/db oauch:latestVisit https://localhost:8433 and add a "site" (I used an internet reachable kanidm instance, to ensure container access to the idm). Follow the steps to configure the client. Click Run test set and follow what appears in the PopUp:
- when a kanidm error appear, click
Stall testin the main window
Impact
I am not knowledgeable enough to assess the impact. Feel free to make this report public if you think that it does not deserve secrecy.