Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#1137 closed defect (fixed)

Possible Information Disclosure With Authz

Reported by: projects.edgewall.com@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.9
Component: general Version: 0.8
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

When using the authz permission system to restrict access, privileged information may be accessible in the form of the files and log messages involved in changesets, and log messages in the browser. An example of such a situation is when a repository contains both private and public files: information about changes to the private files should not be available to unauthorised users.

Attachments (9)

trac-authz-strict.patch (6.5 KB ) - added by projects.edgewall.com@… 20 years ago.
Patch that adds an authz_strict option to the configuration file which hides sensitive information from unauthorised users when enabled.
trac-authz-strict.2.patch (6.4 KB ) - added by projects.edgewall.com@… 20 years ago.
Updated patch. Moves _has_permission_for_changeset to AuthzPermission.has_permission_for_changeset.
trac-authz-strict.3.patch (6.5 KB ) - added by Mark Rowe <edgewall.com@…> 20 years ago.
Updated patch.
trac-authz-strict.4.patch (6.4 KB ) - added by Mark Rowe <edgewall.com@…> 20 years ago.
Fix silly bug introduced by adding unneeded argument to AuthzPermissionError.init.
trac-authz-strict.5.patch (7.6 KB ) - added by Christopher Lenz 20 years ago.
Modified patch so that denied changesets are not shown in the timeline
trac-authz-strict.6.patch (8.1 KB ) - added by Christopher Lenz 20 years ago.
Another patch for the patch, last one was broken
.2 (0 bytes ) - added by Mark Rowe <edgewall.com@…> 20 years ago.
Updated to not display log messages for inaccessible directories in browser view.
trac-authz-strict.7.patch (9.5 KB ) - added by Mark Rowe <edgewall.com@…> 20 years ago.
Updated to not display log messages for inaccessible directories in browser view.
trac-authz-strict.8.patch (11.5 KB ) - added by Mark Rowe <edgewall.com@…> 20 years ago.
Update patch to filter changesets in search results and log view.

Download all attachments as: .zip

Change History (15)

by projects.edgewall.com@…, 20 years ago

Attachment: trac-authz-strict.patch added

Patch that adds an authz_strict option to the configuration file which hides sensitive information from unauthorised users when enabled.

comment:1 by projects.edgewall.com@…, 20 years ago

Note: the attached patch also fixes some inconsistent indentation in authzperm.py.

by projects.edgewall.com@…, 20 years ago

Attachment: trac-authz-strict.2.patch added

Updated patch. Moves _has_permission_for_changeset to AuthzPermission.has_permission_for_changeset.

comment:2 by Christopher Lenz, 20 years ago

Do we really need to add a new option for this? I.e. when would one want to use non-strict authz?

comment:3 by projects.edgewall.com@…, 20 years ago

I believe someone on IRC mentioned the case where you want clients to be able to see what changes have occurred without being able to view the code (or similar).

by Mark Rowe <edgewall.com@…>, 20 years ago

Attachment: trac-authz-strict.3.patch added

Updated patch.

comment:4 by Mark Rowe <edgewall.com@…>, 20 years ago

The updated patch removes the strict option, with that being the default. It now raises a permission error when viewing a changeset that only contains files that we are not authorized to view. authzperm.AuthzPermissionError is now a subclass of perm.PermissionError, which is more logical and prevents the 'Internal Error' page when a permission error occurs.

by Mark Rowe <edgewall.com@…>, 20 years ago

Attachment: trac-authz-strict.4.patch added

Fix silly bug introduced by adding unneeded argument to AuthzPermissionError.init.

by Christopher Lenz, 20 years ago

Attachment: trac-authz-strict.5.patch added

Modified patch so that denied changesets are not shown in the timeline

by Christopher Lenz, 20 years ago

Attachment: trac-authz-strict.6.patch added

Another patch for the patch, last one was broken

by Mark Rowe <edgewall.com@…>, 20 years ago

Attachment: .2 added

Updated to not display log messages for inaccessible directories in browser view.

by Mark Rowe <edgewall.com@…>, 20 years ago

Attachment: trac-authz-strict.7.patch added

Updated to not display log messages for inaccessible directories in browser view.

by Mark Rowe <edgewall.com@…>, 20 years ago

Attachment: trac-authz-strict.8.patch added

Update patch to filter changesets in search results and log view.

comment:5 by Christopher Lenz, 20 years ago

Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

comment:6 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

Patch applied in [1332]. Thanks!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz 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.