Summary
traQ could issue broader OAuth2 access tokens during silent authorization when a request used prompt=none and omitted the scope parameter or supplied it empty. If a user had previously consented to only some scopes for the client, the authorization check could overlook the additional scopes, allowing the client to obtain them without new consent.
Affected context
The issue affects traQ OAuth2 silent authorization requests using prompt=none when the scope parameter is empty or omitted. It becomes risky when the user has previously consented to some—but not all—scopes registered for a client, and that client can receive authorization codes. Users who have never consented to the client still receive a consent-required response.
Exploit preconditions
- Attack surface: The OAuth2 authorization flow in traQ
- Required access: Control of an OAuth client capable of receiving authorization codes, and a target user with prior consent to some scopes for that client
- Trigger point: A silent authorization request with
prompt=noneand an empty or omitted scope parameter - Why exploitation is possible: The consent check evaluates the empty requested scope set, while the authorization flow can make all scopes registered for the client eligible for issuance
Why this happens
The authorization decision does not consistently compare the scopes previously consented to with the scopes that may actually be issued. Treating an empty requested scope set as sufficient for consent, while allowing broader client scopes to be issued, is an authorization-check failure mapped to CWE-863: Incorrect Authorization.
Potential impact
- A client may obtain an access token containing scopes beyond those previously consented to.
- The token could allow access to additional user or application resources covered by those scopes.
- Affected users may have their consent expectations bypassed without an interactive prompt.
General mitigation guidance
Defensive designs should ensure that the scopes checked for consent are the same scopes that can be included in the resulting token.
- Treat omitted or empty scopes conservatively; do not implicitly expand them to all client-registered scopes.
- Require fresh user consent whenever requested or effective scopes exceed the previously approved set.
- Apply strict scope allowlists and issue tokens with only the minimum permissions needed.
- Keep authorization-code handling and client registration subject to appropriate access controls.
How teams detect issues like this
- Review authorization code paths for differences between requested, consented, and token-issued scopes.
- Use static analysis or code review checks to flag authorization decisions based on empty or defaulted scope sets.
- Test silent authorization behavior for omitted, empty, previously consented, and expanded scope combinations.
- Enforce policies that prevent token scopes from exceeding the user's recorded consent.

