# GHSA-HH34-7JQQ-3F73: OAuth 2.0 Analysis with Oauch

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-06-23
- Modified: 2026-06-23

## Affected versions

- kanidm (crates.io): 1.10.3

## Description

### Summary

I run https://github.com/DistriNet/OAuch against my instance of kanidm (v1.10.3, NixOS 25.11), and it suggested some mitigation measures. Here are some of them:
- invalidate authorization code after the first use https://datatracker.ietf.org/doc/html/rfc9700#section-4.2.4 (4th paragraph)
- rejects PKCE code verifiers that are too short (less than 34 characters). https://datatracker.ietf.org/doc/html/rfc7636#section-4.1
- use the X-Frame-Options header to avoid framing of the authorization page https://datatracker.ietf.org/doc/html/rfc9700#name-clickjacking
- suppress the 'Referer' header: https://datatracker.ietf.org/doc/html/rfc9700#section-4.2.4 (1st paragraph)


### Details

See the PDF attached. The localhost links are available on https://oauch.io/Tests as well.
[Site results - OAuch.pdf](https://github.com/user-attachments/files/28481039/Site.results.-.OAuch.pdf)


### PoC

Clone https://github.com/DistriNet/OAuch, apply the patch https://github.com/DistriNet/OAuch/pull/10 and build the container:
```
cd src/OAuch
podman build -t oauch .
```

Start the container
```
podman run -p 8443:443 -v ./db:/db oauch:latest
```

Visit `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 test` in 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.

## References

- https://github.com/kanidm/kanidm/security/advisories/GHSA-hh34-7jqq-3f73

Page: https://cve.now/GHSA-HH34-7JQQ-3F73

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
