Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#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 Christopher Lenz, 18 years ago

Milestone: 0.10.3
Priority: normalhighest

Haven't tried to reproduce this, but if that is the case, yeah, it's serious.

comment:2 by Christian Boos, 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 Matthew Good, 18 years ago

Keywords: needinfo added

comment:4 by anonymous, 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 Christian Boos, 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 Christian Boos, 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 Christian Boos, 18 years ago

Keywords: needinfo removed
Status: newassigned

He, sure… The req.authname info was set after the pre_process_request

comment:8 by anonymous, 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:

[/]
* =

in reply to:  8 comment:9 by Christian Boos, 18 years ago

Resolution: fixed
Status: assignedclosed

Replying to anonymous:

I patched to 0.10.3-dev, …

Right, I should have guessed or you should have told me earlier ;)

Fixed in r4309.

comment:10 by anonymous, 18 years ago

Thanks! I applied the diff, which fix the problem.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.