[SECURITY ISSUE] CVE-2015-0276: Lack of CSRF attack protection enables gaining unauthorised access to users' accounts
Kallithea Security Team
security at kallithea-scm.org
Fri Apr 10 13:28:48 EDT 2015
We've discovered a security issue in Kallithea. We recommend you to
upgrade your instances to avoid possible attacks. The details of the
security notice follow below.
A vulnerability has been found in Kallithea, allowing attackers to gain
unauthorised access to account of a logged in user.
Pages presentings forms to the user and accepting user's input don't
provide synchronisation tokens to prevent cross-site request forgery.
It is possible to change an email address of a user by tricking them
into clicking a link that initiates the following HTTP request:
POST /_admin/my_account HTTP/1.1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0)
Gecko/20100101 Firefox/35.0 Accept:
Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate
After this, the attacker can request a password reset, the link is then
sent to their new email address. Then the attacker changes the email
address back to the original, and doesn't log out, saving the cookie.
At this point, the attacker has full access to the user's account. The
user can't login (the password has changed), but might think that he
forgot their password, has an account lockout, or an expired account.
The user does a password reset, but the attacker still has the access.
The vulnerability allows attacker to steal account of an active user by
using social engineering techniques. In the case the user also has
administrator rights, it is possible for the attacker to gain full
administrator access to the Kallithea instance.
Kallithea project has fixed this issue by adding CSRF checks to the form
generation code. Before the fix, there none of the forms had CSRF
protection, with the fix, all POST forms are protected against CSRF.
There's no fix as a standalone patch, however; instead, it is
recommended to upgrade to the latest 0.2 release which includes lots of
other changes and improvements.
The issue is currenly present in all Kallithea versions before 0.2.
 Kallithea: Security Notice CVE-2015-0276
on behalf of Kallithea Security Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the kallithea-general