TL;DR
What: The asset-search endpoint in KoboToolbox kpi built a Django Q(**{field: value}) from the field name in q= , and nothing limited which fields that name could reach. The grammar allows __ , so an authenticated user could send a relational lookup like owner__auth_token__key__startswith , which JOINs from an asset to its owner's API token.
Impact: The paginated count in the response works as a boolean oracle. In a local test with synthetic accounts and one project shared to the attacker, it recovered the first 10 of the owner's 40 token characters. The loop was not run further and no token was used. Rated High 8.6 ( CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N ) on the published GitHub advisory; CWE-203 and CWE-943.
Fixed in 2.026.23a ( PR #7189 ).…