Skip to content

fix: prevent authentication bypass in annotation Label Studio login#510

Merged
Dallas98 merged 1 commit into
mainfrom
security/cheat-ls
Jun 17, 2026
Merged

fix: prevent authentication bypass in annotation Label Studio login#510
Dallas98 merged 1 commit into
mainfrom
security/cheat-ls

Conversation

@MoeexT

@MoeexT MoeexT commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Add user authentication check and project existence validation to /project/{mapping_id}/login endpoint. Previously, any unauthenticated user could obtain Label Studio admin session cookies by calling this endpoint, gaining full administrative access to the annotation platform.

  • Require valid User header before processing login
  • Validate that mapping_id corresponds to an existing non-deleted project
  • Return 401 if not authenticated, 404 if project not found
  • Add audit logging for successful login attempts

close: #509

Add user authentication check and project existence validation to
/project/{mapping_id}/login endpoint. Previously, any unauthenticated
user could obtain Label Studio admin session cookies by calling this
endpoint, gaining full administrative access to the annotation platform.

- Require valid User header before processing login
- Validate that mapping_id corresponds to an existing non-deleted project
- Return 401 if not authenticated, 404 if project not found
- Add audit logging for successful login attempts
@Dallas98 Dallas98 merged commit 71a0efc into main Jun 17, 2026
8 checks passed
@MoeexT MoeexT deleted the security/cheat-ls branch June 18, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

数据标注中,有认证欺骗绕过的问题,通过访问/api/annotation/project/1/login可导致拿到label annotation管理员的权限

2 participants