canto-saas-api: Authenticated API requests can be redirected via unencoded path variables
Summary
In affected versions, Request::buildRequestUrl() inserts path variables into
the request URL without URL encoding (implode('/', $pathVariables)). All
request classes implementing getPathVariables() are affected, e.g.
GetContentDetailsRequest (scheme, contentId).
If a consuming application passes untrusted input (such as an ID taken from
an HTTP request parameter) as a path variable, characters like ../, ? or
# are sent verbatim and can change the path of the resulting API request.
Impact
An attacker who controls a path variable value can redirect the
library's authenticated request — the Bearer access token is attached in
AbstractEndpoint::sendRequest() — to a different API endpoint of the same
Canto instance, causing unintended reads or writes with the privileges of the
configured app. The impact depends on how the consuming application sources
path variable values; applications that only pass trusted, validated IDs are
not exploitable.
Patches
Fixed in 3.0.0: every path segment is encoded with rawurlencode() before
being inserted into the request URL.
Workarounds
If you cannot upgrade, validate untrusted values before passing them to
request classes, e.g. enforce an allowlist pattern such as
^[A-Za-z0-9_-]+$ for content IDs and schemes.
Betroffene Software
Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.
| Plattform | Paket | Anfällige Versionen | Behoben in |
|---|---|---|---|
| Composer-Paket | jleehr/canto-saas-api | < 3.0.0 | 3.0.0 |
Verweise
- CVSS-Vektor
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N- Schwäche (CWE)
CWE-74, CWE-918- Plattform
- Composer
- Paket
jleehr/canto-saas-api- Veröffentlicht
- 19.06.2026
- Aktualisiert
- 11.10.2026 10:22
Quellen und Lizenzen
OSV / GitHub Advisory Database - GHSA-9qfv-wgh2-m6p8 - CC BY 4.0
Schwachstellenhistorie: jleehr/canto-saas-api
Alle veröffentlichten Schwachstellen dieses Pakets (Composer-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.
- Einträge insgesamt
- 2
- Erste → letzte
- 06.2026 06.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Mittel 2
Veröffentlichungen pro Jahr
- 2026: 2
-
canto-saas-api: Authenticated API requests can be redirected via unencoded path variables dieser Eintrag
Erkennen Sie Schwachstellen in Ihrer Anwendung
Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.