Weak password reset token & code exec in ownCloud 3.0.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
owncloud (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
http://
= weak password reset token =
The way how ownCloud generates password reset tokens is highly insecure and
can be used to overtake arbitrary accounts by solely knowing the
corresponding
username.
file: core/lostpasswo
15 $token = sha1($_
due to the usage of the + operator, both operands (strings) are
interpreted as
numerical values
(http://
uniqId() is a simple timestamp in its hex representation. this
timestamps starts
with "4f" until 2012-7-13 and is therefore evaluated as a 4
this allows an attacker to trivially predict the generated token and
reset the
password.
= code exec =
user uploaded files are stored in the /data/<user>/files directory of the
ownCloud webroot. /data is secured by a .htaccess file ("deny from all")
but users can overwrite this setting by uploading a new .htaccess to their
files directory (e.g. "allow from all").
by uploading a php script and circumventing the .htaccess restriction users
are able to execute code by requesting the uploaded script via the
following url:
http://<host>/
(uploading of a .htaccess file is obviously only needed on webservers
which support them in the first place).
= Disclosure Timeline =
2012-04-03: contacted the ownCloud team
2012-04-04: fixes
http://
http://
2012-04-19: Disclosure
Please update to version 3.0.3 http://
summary: |
- eak password reset token & code exec in ownCloud 3.0.0 + Weak password reset token & code exec in ownCloud 3.0.0 |
visibility: | private → public |
Changed in owncloud (Ubuntu): | |
status: | New → Confirmed |
Thanks for taking the time to report this bug and helping to make Ubuntu better. Since the package referred to in this bug is in universe or multiverse, it is community maintained. If you are able, I suggest coordinating with upstream and posting a debdiff for this issue. When a debdiff is available, members of the security team will review it and publish the package. See the following link for more information: https:/ /wiki.ubuntu. com/SecurityTea m/UpdateProcedu res