漏洞信息
Shenlong is analyzing...
对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Unlimited inflation of points, level and leaderboard position in The Hackers Labs Academy through repeatable awards for reversible actions
Vulnerability Description
Improper Enforcement of a Single, Unique Action (CWE-837) in the leaderboard award paths of The Hackers Labs Academy allows any authenticated user to raise their own points, level and leaderboard position without limit, by repeating an action they are able to reverse themselves. LikeToggleView (backend/apps/community/views.py) creates a LeaderboardPoint of action LIKE_RECEIVED, worth 2 points, for the author of a post when a like is created; on the next call it deletes the Like row and leaves the point in place, so a like, unlike and like again sequence adds 2 points per cycle. That view carries no check that the liker is not the author of the post, so the sequence can be run against the user's own post, and its only permission class is IsAuthenticated. MarkLessonCompleteView (backend/apps/classroom/views.py) creates a LeaderboardPoint of action LESSON_COMPLETED, worth 20 points, under a guard on progress.completed, while its DELETE method sets completed back to False without removing the point, so the guard passes again and a complete, uncomplete and complete again sequence adds 20 points per cycle; that path additionally requires an active membership. No negative or compensating event exists for a reversed action. LeaderboardPoint.save recalculates user.points as the sum of every point row belonging to the user and persists it, the level property of the user model derives from user.points, and build_ranking orders the top 50 by that same sum, so an inflated total carries into the level and into the weekly, monthly and global rankings. This results in the points, level and ranking position of an account being settable to any value by that account alone.
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Vulnerability Type
CWE-837