Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-124

Security - templates can get classloader by using java.security.ProtectionDomain.getClassLoader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.3.30
    • None
    • Important

    Description

      By using java.security.ProtectionDomain.getClassLoader templates will get access to the classloader and from there can get filesystem access and more.

       

      See:

      https://github.com/apache/freemarker/pull/62

       

      And 

      https://ackcent.com/blog/in-depth-freemarker-template-injection/

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            galusben@gmail.com Gal Ben Ami
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: