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

Rating Script Service expose XWiki to SQL injection

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      The Rating Script Service defines a method not protected by programming rights with the following signature:

      public AverageRatingApi getAverageRating(String fromsql, String wheresql)
      

      Those two parameters are then used directly in AbstractRatingManager to produce an SQL request without any escaping.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: