Menu

A search box that JOINed to your token table: ORM filter injection in KoboToolbox (GHSA-xrq7-925g-qg5m)
📰

A search box that JOINed to your token table: ORM filter injection in KoboToolbox (GHSA-xrq7-925g-qg5m)

DEV Community: appsec·Santosh Kumar Puppala·5 days ago
#Ck6gaBcb
#devtoappsec#devto#dev#token#field
Reading 0:00
15s threshold

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 ).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.