#4194 closed defect (fixed)
Changeset accessible even through authz_file is in use
Reported by: | anonymous | Owned by: | Christian Boos |
---|---|---|---|
Priority: | highest | Milestone: | 0.10.3 |
Component: | version control/changeset view | Version: | 0.10.2 |
Severity: | major | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Since trac-0.10.2, changesets from private branches (access controlled through the authz_file directive) are now accessible to anonymous users. The timeline view is also affected. This sound like a severe security issue.
Attachments (0)
Change History (10)
comment:1 by , 18 years ago
Milestone: | → 0.10.3 |
---|---|
Priority: | normal → highest |
comment:2 by , 18 years ago
Well, it works for me. Can you provide more details, like what paths are now accessible and what is the corresponding authz_file (mangle user names and paths if the file is sensitive).
Also, make sure you have a fresh and clean 0.10.2 install. Create a new test env, use the same repository and the same authz_file. Can you reproduce the issue?
comment:3 by , 18 years ago
Keywords: | needinfo added |
---|
comment:4 by , 18 years ago
I'm currently trying to gather more information concerning the problem. I'm now seeing that it also seem to impact the browser view. The svnpolicy file look like:
[/] a = rw b = rw c = rw *= r [/trunk/projectA] d = rw e = rw # more declaration skipped, here is the interesting bit: [/branches/private] a = rw * =
comment:5 by , 18 years ago
Oh, wait, yes, it seems that the Timeline shows me a changeset I shouldn't have access to. trunk
is not affected but 0.10.2 is…
But trying to view this changeset or go the the path using the browser still raises the appropriate exception.
comment:6 by , 18 years ago
Well, it seems that it's even worse with 0.10-stable… nothing gets protected there. You're using a patched 0.10.2, right?
comment:7 by , 18 years ago
Keywords: | needinfo removed |
---|---|
Status: | new → assigned |
He, sure… The req.authname
info was set after the pre_process_request
…
follow-up: 9 comment:8 by , 18 years ago
I patched to 0.10.3-dev, both Changeset view and Browser view are affected. From my testing, it seem like trac completly ignore any specification of the authz_file setting, even with a policy file as simple as:
[/] * =
comment:9 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Haven't tried to reproduce this, but if that is the case, yeah, it's serious.