jleehr/canto-saas-api
Affected
- introduced
0, fixed3.0.0(ecosystem)
Fixed versions
3.0.0
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-55375
canto-saas-api: OAuth credentials exposed in URL query string and exception messages
Summary
In affected versions, the OAuth2 token request sends app_id, app_secret,
refresh_token and code as URL query parameters of the POST request to
https://oauth.<domain>/oauth/api/oauth2/token. Request URLs are commonly
recorded in access logs, proxy logs and APM traces, so the application secret
and refresh token can be persisted in plain text outside the application's
control.
In addition, when the token request fails, the Guzzle exception message —
which contains the full request URI including the credentials — was passed
unmodified into the AuthorizationFailedException thrown by
OAuth2::obtainAccessToken(). Applications that log exceptions or forward
them to error trackers (e.g. Sentry) may therefore have recorded the app
secret in their logs.
## Impact
An attacker with access to web server logs, proxy logs, APM tracing data or
application error logs of a consumer of this library can obtain the Canto
app_secret, refresh_token or authorization code and use them to obtain
access tokens for the Canto tenant.
## Patches
Fixed in 3.0.0:
OAuth2Request::getQueryParams() now returns null; the parameters are available via getFormParams().app_secret, refresh_token and code are masked (including url-encoded, differently cased and JSON-embedded variants).## Workarounds
If you cannot upgrade:
AuthorizationFailedException in your application and strip the query string from the message before logging or forwarding it.If your logs may have been exposed, rotate the affected Canto app secret.
Medium Basis: The source's own band: MODERATE
0, fixed 3.0.0 (ecosystem)3.0.0
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0