CRM-20301 XSS in search results address and email fields

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.16, 4.6.28
    • Fix Version/s: 4.6.29, 4.7.21
    • Component/s: None
    • Security Level: Security - Published
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      Steps to reproduce:

      1. Create a new contact
      2. Set Street Address = " onmouseover="alert('XSS');" x="
      3. Perform a search in which the contact is displayed in the results
      4. Hover over the street address and observe that js has been executed

      The email field in the search results screen is affected as well, although it's more difficult to get the exploit into that field because of the input validation (though presumably possible).

        Attachments

          Activity

          [CRM-20301] XSS in search results address and email fields
          Seamus Lee added a comment -

          I have tested Sean's proposed fix and it works and solves the issue

          Mark Hanna added a comment -

            People

            • Assignee:
              Sean Madsen
              Reporter:
              Seamus Lee
              Authorized Participants:
              Sean Madsen

              Dates

              • Created:
                Updated:
                Resolved: