Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-1140

Autogenerate changenote on page comments

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.11.0-M8
    • 2.11.0
    • Core & storage
    • None
    • Windows new version

      Firefox version 84.0.1

    Description

      In the comment function, users can impersonate other users to leave comments.

      Vulnerable code is line 86 in Comment.jsp :

      // String author  = TextUtil.replaceEntities( request.getParameter("author") );
      

      Replace any user in parameter author to impersonate.

      • Request :
        POST /wikijsp_m8_war/Comment.jsp?page=Main HTTP/1.1
        Host: localhost:8080
        page=Main&action=save&encodingcheck=%E3%81%81&xnfull=1608888733842&submit_auth=&ok=&changenote=&author=dangkhai&link=&_editedtext=n%C3%A2nna%0D%0A

      Attachments

        1. wiki.mp4
          642 kB
          Nguyen Dang Khai

        Activity

          People

            Unassigned Unassigned
            dangkhai Nguyen Dang Khai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: