LearnHouse before 1.4.0 Missing Authorization via Playground Duplicate Endpoint
Impact
LearnHouse before 1.4.0 contains a missing authorization vulnerability in POST /api/v1/playgrounds/{uuid}/duplicate that skips the read-access and draft checks enforced by get_playground. Authenticated users with playground creation rights, such as Instructors, who know a RESTRICTED or unpublished playground UUID can copy its html_content and republish it publicly.
Source excerpt · VulnCheckAffected packages
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
learnhouse · LearnHouse
Other versions: unaffected
| Version / range | Source status |
|---|---|
| 0 to before 1.4.0 | affected |
| 1.4.0 | unaffected |
Original source description
LearnHouse before 1.4.0 contains a missing authorization vulnerability in POST /api/v1/playgrounds/{uuid}/duplicate that skips the read-access and draft checks enforced by get_playground. Authenticated users with playground creation rights, such as Instructors, who know a RESTRICTED or unpublished playground UUID can copy its html_content and republish it publicly.
References
- Patch github.com/learnhouse/learnhouse/pull/1120
- Patch github.com/learnhouse/learnhouse/commit/9a1319185a596ea9b40651dbfd96f05195c0be37
- Source reference github.com/learnhouse/learnhouse
- Security advisory www.vulncheck.com/advisories/learnhouse-before-1.4.0-missing-authorization-via-playground-duplicate-endpoint