You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vlad Georgescu <vg...@gmail.com> on 2007/10/16 19:47:26 UTC

Authz inconsistency in svn_repos_get_logs()

While working on issue #2712, I noticed that if you run 'svn log' on the
root of a repository, svn_repos_get_logs4() won't check the authz rules,
but if you run 'svn log' on a path below the root or on multiple paths,
the checks will be made and you'll get an error if you don't have
permission to read that path.

Is there a reason for this inconsistency?

-- 
Vlad

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Authz inconsistency in svn_repos_get_logs()

Posted by Vlad Georgescu <vg...@gmail.com>.
Vlad Georgescu wrote:
> While working on issue #2712, I noticed that if you run 'svn log' on the
> root of a repository, svn_repos_get_logs4() won't check the authz rules,
> but if you run 'svn log' on a path below the root or on multiple paths,
> the checks will be made and you'll get an error if you don't have
> permission to read that path.

By the way, this isn't a security problem, because we do
another round of authz checks later (in libsvn_repos/log.c:
detect_changed()) to determine what information to send back, so the
user never sees stuff he isn't supposed to.

The checks I'm talking about are in get_path_histories() and will simply
deny you access completely.  The inconsistency is that we don't make
that check for the root of the repository, because it is handled by
svn_repos_get_logs() directly.

-- 
Vlad

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org