Uploaded image for project: 'BVal'
  1. BVal
  2. BVAL-92

Security holes in org.apache.bval.util.PrivilegedActions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.2-incubating, 0.3-incubating, 0.4
    • 0.4
    • None
    • None

    Description

      PrivilegedActions is public. It offers several method, e.g. getClassLoader() which are executed surrounded by privileged actions. Thus any caller can get e.g. a classloader, even if the caller has not the required permissions.

      PrivilegedActions should offer only factory methods creating the privileged actions. Then the callers should call AccessController.doPrivileged() for themselves, such that the actions will be executed in the caller's security domain, instead of the domain of the BeanValidation API.

      Attachments

        1. apache-bval-20110327231539-jw.diff
          54 kB
          Jörg Waßmer
        2. apache-bval-20110327092101-jw.diff
          57 kB
          Jörg Waßmer

        Activity

          People

            romanstumm Roman Stumm
            joerg.wassmer Jörg Waßmer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: