Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-457

Instantiating random classes in Velocity should not be allowed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0 B1
    • Fix Version/s: 1.0 B5
    • Component/s: Velocity
    • Labels:
      None
    • Similar issues:

      Description

      We need to fix this.

      #set ($math = $context.getClass().forName("org.apache.velocity.tools.generic.MathTool").newInstance())

      This should not be allowed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                ludovic Ludovic Dubost
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: