Skip to main content

Security

Reporting a vulnerability

Found a security problem? Please do not open a public issue. The security policy describes how to report it privately, which versions are supported and what is in scope.

ID token​

firebase/php-jwt and league/oauth2-client are not available for plugins, so the token is verified in src/Services/IdTokenVerifier.php with OpenSSL.

  • Only RS256/384/512 and ES256/384/512 are accepted, never none or HS*.
  • The keys always come from the JWKS of the provider. On an unknown key ID, the JWKS is reloaded once.
  • Checked claims are iss, aud, nonce, sub, exp and nbf, with 60 seconds of tolerance.

No account takeover​

  • An email address that exists in xTIPP is refused, whether or not the provider reports it as verified. Deleted accounts count too, and the comparison ignores case.
  • A provider can only be added to an account by its owner, while logged in.

Client secret​

Stored with the encrypted cast of Laravel (AES-256-CBC with the APP_KEY). A database dump alone does not reveal it, a dump together with the .env does. If a secret leaks, create a new one at the provider.

Userinfo endpoint​

  • Its answer is only used if its sub equals the one of the verified ID token.
  • It only fills claims the ID token does not have. Values of the signed ID token always win.
  • If the endpoint fails, the login goes on with the claims of the ID token.
  • The access token is only kept in memory for this request.

Stored data​

Per linked provider, the table plugin_oidc_identities keeps only:

  • the user and the provider,
  • the subject (sub),
  • the email address and the time of the last login.

The other claims of the ID token (name, avatar, locale, …) are used once to prefill the registration form and are not stored. No ID token, access token or refresh token is stored.

Logging​

A rejected callback logs the provider, the reason and flags, but never the state or any token. The debug mode logs more, including personal data, but never secrets or tokens either.

Further protections​

  • The session ID is regenerated on login.
  • All state-changing routes are protected by CSRF.
  • The routes of the flow are rate limited to 20 requests per minute.