Description
QPixel is a Q&A-based community knowledge-sharing software. Prior to 0.13.0, the unauthenticated comments#show action in app/controllers/comments_controller.rb resolves user-controlled comment IDs with Comment.unscoped, bypassing the Comment community default scope, and performs no deletion or post-visibility authorization check. A remote unauthenticated attacker can enumerate sequential IDs and read the full content of comments belonging to other communities, soft-deleted comments, and comments under access-restricted categories. The JSON response exposes the stored comment columns because the model has no limiting as_json override. This issue is fixed in version 0.13.0.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
codidact qpixel
< 0.13.0affected
References
- https://github.com/codidact/qpixel/security/advisories/GHSA-9mhx-jr3h-2cvf ↗
- https://github.com/codidact/qpixel/pull/2080 ↗
- https://github.com/codidact/qpixel/commit/78240c7bca374b50047455bade7f3596887ee782 ↗
- https://github.com/codidact/qpixel/commit/d4d49b640c4b70f931e84a1d137acb93a1703867 ↗
- https://github.com/codidact/qpixel/releases/tag/v0.13.0 ↗