Uploaded image for project: 'Commons OGNL (Dormant)'
  1. Commons OGNL (Dormant)
  2. OGNL-182

Class.forName() usage is malicious inside OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.0
    • None
    • None

    Description

      Class.forName() could make OGNL unusable inside OSGi.
      The fix would involve the ClassLoader.loadClass() method, allowing users setting a custom {{ClassLoader}

      Classes affected by that issues are:

      • org.apache.commons.ognl.DefaultClassResolver
      • org.apache.commons.ognl.OgnlRuntime

      The org.apache.commons.ognl.ASTMap class is affected as well, even if loading java.util.LinkedHashMap in that way should be safe.

      Attachments

        1. patch-OGNL23.txt
          5 kB
          Adrian Cumiskey
        2. patch-OGNL23-v2.txt
          37 kB
          Adrian Cumiskey

        Activity

          People

            simone.tripodi Simone Tripodi
            simone.tripodi Simone Tripodi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: