Description
Artalk through 2.10.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to post comments as the administrator by padding the admin name with whitespace. Attackers can submit the padded name and admin email to POST /api/v2/comments, evading Dao.IsAdminUserByNameEmail while comments are stored under the administrator account and can alter its displayed name.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ArtalkJS | Artalk | 0 ≤2.10.1 | — |
References
- https://github.com/ArtalkJS/Artalk/blob/v2.10.1/internal/dao/query_find.go#L263-L274
- https://github.com/ArtalkJS/Artalk/blob/v2.10.1/internal/dao/query_find_create.go#L62-L77
- https://github.com/ArtalkJS/Artalk/blob/v2.10.1/server/handler/comment_create.go#L180-L233
- https://www.vulncheck.com/advisories/artalk-through-2.10.1-admin-impersonation-via-whitespace-padded-name-in-comments