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

Rating Script Service expose XWiki to SQL injection

    XMLWordPrintable

    Details

    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved: