Does not handled NotFoundException in AclAuthorizationStrategyImpl.securityCheck

Open
#3,730 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, spring

Research direction

Start with AclAuthorizationStrategyImpl.securityCheck and trace the acl.isGranted call when it raises NotFoundException. Check the surrounding security behavior and existing exception handling; done means the check produces the expected AccessDeniedException instead of allowing NotFoundException to escape.

Written by the indexing model from the issue text.

Description

status: waiting-for-triage

In case when then currently authenticated user does not have requiredAuthority to change acl then
performed check:

        if (acl.isGranted(Arrays.asList(BasePermission.ADMINISTRATION), sids, false)) {
            return;
        }

but Acl.isGranted may throws NotFoundException and if it will be thrown then AclAuthorizationStrategyImpl.securityCheck does not throw AccessDeniedException as expected.

Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-security

All issues in spring-projects/spring-security

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.