Vulnerabilities > CVE-2017-8514 - Cross-site Scripting vulnerability in Microsoft Sharepoint Enterprise Server 2016

047910
CVSS 3.5 - LOW
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
SINGLE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
microsoft
CWE-79
nessus

Summary

An information disclosure vulnerability exists when Microsoft SharePoint software fails to properly sanitize a specially crafted requests, aka "Microsoft SharePoint Reflective XSS Vulnerability".

Vulnerable Configurations

Part Description Count
Application
Microsoft
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Embedding Scripts in Non-Script Elements
    This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Cross-Site Scripting in Error Pages
    An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
  • Cross-Site Scripting Using Alternate Syntax
    The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS17_JUN_OFFICE_SHAREPOINT.NASL
descriptionThe Microsoft SharePoint Server installed on the remote Windows host is missing a security update. It is, therefore, affected by multiple vulnerabilities : - Multiple remote code execution vulnerabilities exist in Microsoft Office due to improper handling of objects in memory. An unauthenticated, remote attacker can exploit these, by convincing a user to open a specially crafted document, to execute arbitrary code in the context of the current user. (CVE-2017-8509, CVE-2017-8511, CVE-2017-8512) - A remote code execution vulnerability exists in Microsoft PowerPoint due to improper handling of objects in memory. An unauthenticated, remote attacker can exploit this, by convincing a user to open a specially crafted file, to execute arbitrary code in the context of the current user. (CVE-2017-8513) - A reflective cross-site scripting (XSS) vulnerability exists in Microsoft SharePoint Server due improper validation of user-supplied input in web requests. An unauthenticated, remote attacker can exploit this, via a specially crafted request, to execute arbitrary script code in a user
last seen2020-06-01
modified2020-06-02
plugin id100787
published2017-06-14
reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/100787
titleSecurity Update for Microsoft SharePoint Server (June 2017)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(100787);
  script_version("1.12");
  script_cvs_date("Date: 2019/11/13");

  script_cve_id(
    "CVE-2017-8509",
    "CVE-2017-8511",
    "CVE-2017-8512",
    "CVE-2017-8513",
    "CVE-2017-8514",
    "CVE-2017-8551"
  );
  script_bugtraq_id(
    98812,
    98815,
    98816,
    98830,
    98831,
    98913
  );
  script_xref(name:"MSKB", value:"3127894");
  script_xref(name:"MSFT", value:"MS17-3127894");
  script_xref(name:"MSKB", value:"3172445");
  script_xref(name:"MSFT", value:"MS17-3172445");
  script_xref(name:"MSKB", value:"3203384");
  script_xref(name:"MSFT", value:"MS17-3203384");
  script_xref(name:"MSKB", value:"3203385");
  script_xref(name:"MSFT", value:"MS17-3203385");
  script_xref(name:"MSKB", value:"3203387");
  script_xref(name:"MSFT", value:"MS17-3203387");
  script_xref(name:"MSKB", value:"3203388");
  script_xref(name:"MSFT", value:"MS17-3203388");
  script_xref(name:"MSKB", value:"3203390");
  script_xref(name:"MSFT", value:"MS17-3203390");
  script_xref(name:"MSKB", value:"3203397");
  script_xref(name:"MSFT", value:"MS17-3203397");
  script_xref(name:"MSKB", value:"3203398");
  script_xref(name:"MSFT", value:"MS17-3203398");
  script_xref(name:"MSKB", value:"3203399");
  script_xref(name:"MSFT", value:"MS17-3203399");
  script_xref(name:"MSKB", value:"3203430");
  script_xref(name:"MSFT", value:"MS17-3203430");
  script_xref(name:"MSKB", value:"3203431");
  script_xref(name:"MSFT", value:"MS17-3203431");
  script_xref(name:"MSKB", value:"3203432");
  script_xref(name:"MSFT", value:"MS17-3203432");
  script_xref(name:"MSKB", value:"3203458");
  script_xref(name:"MSFT", value:"MS17-3203458");
  script_xref(name:"IAVA", value:"2017-A-0179");

  script_name(english:"Security Update for Microsoft SharePoint Server (June 2017)");
  script_summary(english:"Checks the file versions.");

  script_set_attribute(attribute:"synopsis", value:
"An application installed on the remote Windows host is affected by
multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"The Microsoft SharePoint Server installed on the remote Windows host
is missing a security update. It is, therefore, affected by multiple
vulnerabilities :

  - Multiple remote code execution vulnerabilities exist in
    Microsoft Office due to improper handling of objects in
    memory. An unauthenticated, remote attacker can exploit
    these, by convincing a user to open a specially crafted
    document, to execute arbitrary code in the context of
    the current user. (CVE-2017-8509, CVE-2017-8511,
    CVE-2017-8512)

  - A remote code execution vulnerability exists in
    Microsoft PowerPoint due to improper handling of objects
    in memory. An unauthenticated, remote attacker can
    exploit this, by convincing a user to open a specially
    crafted file, to execute arbitrary code in the context
    of the current user. (CVE-2017-8513)

  - A reflective cross-site scripting (XSS) vulnerability
    exists in Microsoft SharePoint Server due improper
    validation of user-supplied input in web requests. An
    unauthenticated, remote attacker can exploit this, via a
    specially crafted request, to execute arbitrary script
    code in a user's browser session. (CVE-2017-8514)

  - An elevation of privilege vulnerability exists when
    Microsoft SharePoint Server does not properly sanitize 
    a specially crafted web request to an affected
    SharePoint server. An authenticated attacker could
    exploit the vulnerability by sending a specially crafted
    request to an affected SharePoint server. (CVE-2017-8551)");
  script_set_attribute(attribute:"see_also", value:"https://portal.msrc.microsoft.com/en-us/security-guidance/summary");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for SharePoint Server 2007;
SharePoint Server 2010; SharePoint Enterprise Server 2013 and 2016;
SharePoint Foundation 2013; Word Automation Services on Microsoft
SharePoint Server 2010; and Microsoft Office Project Server 2013.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2017-8513");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2017/06/13");
  script_set_attribute(attribute:"patch_publication_date", value:"2017/06/13");
  script_set_attribute(attribute:"plugin_publication_date", value:"2017/06/14");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:sharepoint_server");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:sharepoint_foundation");
  script_set_attribute(attribute:"stig_severity", value:"II");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows : Microsoft Bulletins");

  script_copyright(english:"This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("microsoft_sharepoint_installed.nbin", "smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl", "microsoft_office_compatibility_pack_installed.nbin", "microsoft_project_installed.nbin");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445, "Host/patch_management_checks");

  exit(0);
}

include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("smb_reg_query.inc");
include("misc_func.inc");
include("install_func.inc");

get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = "MS17-06";
kbs = make_list(
  '3127894', # SharePoint Server 2007 Service Pack 3 (32-bit editions)
  '3172445', # SharePoint Server 2013 Service Pack 1
  '3203384', # Word Automation Services on SharePoint Server 2013 SP1
  '3203385', # SharePoint Enterprise Server 2013 Service Pack 1
  '3203387', # SharePoint Enterprise Server 2013 Service Pack 1
  '3203388', # SharePoint Enterprise Server 2013 Service Pack 1
  '3203390', # SharePoint Enterprise Server 2013 Service Pack 1
  '3203397', # SharePoint Enterprise Server 2013 Service Pack 1 
  '3203398', # SharePoint Foundation 2013 SP1
  '3203399', # Project Server 2013 SP1
  '3203430', # SharePoint Enterprise Server 2013 Service Pack 1 Cumulative Update
  '3203431', # SharePoint Foundation 2013 SP1
  '3203432', # SharePoint Enterprise Server 2016
  '3203458'  # Word Automation Services on SharePoint Server 2010 SP2
);

if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);

get_kb_item_or_exit("SMB/Registry/Enumerated", exit_code:1);

# Get path information for Windows.
windir = hotfix_get_systemroot();
if (isnull(windir)) exit(1, "Failed to determine the location of %windir%.");

registry_init();

var sps_2016_path, sps_2016_sp, sps_2016_edition;
var sps_2013_path, sps_2013_sp, sps_2013_edition;
var sps_2010_path, sps_2010_sp, sps_2010_edition;
var sps_2007_path, sps_2007_sp, sps_2007_edition;

vuln = FALSE;
xss  = FALSE;
port = kb_smb_transport();
arch = get_kb_item_or_exit('SMB/ARCH');

installs = get_installs(app_name:"Microsoft SharePoint Server", exit_if_not_found:TRUE);

foreach install (installs[1])
{
  if (install["Product"] == "2016")
  {
    sps_2016_path = install['path'];
    sps_2016_sp = install['SP'];
    sps_2016_edition = install['Edition'];
  }
  else if (install["Product"] == "2013")
  {
    sps_2013_path = install['path'];
    sps_2013_sp = install['SP'];
    sps_2013_edition = install['Edition'];
  }
  else if (install["Product"] == "2010")
  {
    sps_2010_path = install['path'];
    sps_2010_sp = install['SP'];
    sps_2010_edition = install['Edition'];
  }
  else if (install["Product"] == "2007")
  {
    sps_2007_path = install['path'];
    sps_2007_sp = install['SP'];
    sps_2007_edition = install['Edition'];
  }
}

######################################################################
# SharePoint Server 2016
######################################################################
if (sps_2016_path && sps_2016_sp == "0" && sps_2016_edition == "Server")
{
  path = hotfix_append_path(path:sps_2016_path, value:"WebServices\ConversionServices");
  if (hotfix_check_fversion(file:"sword.dll", version:"16.0.4549.1000", min_version:"16.0.0.0", path:path, kb:"3203432", product:"Office SharePoint Server 2016") == HCF_OLDER)
  {
    vuln = TRUE;
    xss  = TRUE;
  }
}

######################################################################
# SharePoint Server 2013 SP1
######################################################################
if (sps_2013_path && sps_2013_sp == "1")
{
  if(sps_2013_edition == "Server")
  {
    # Project Server 2013
    # Files under <sps_2013_path>\bin
    path = hotfix_append_path(path:sps_2013_path, value:"Bin");
    if(get_install_count(app_name:"Microsoft Project Server") > 0)
    {
      if (hotfix_check_fversion(file:"schedengine.exe", version:"15.0.4937.1000", min_version:"15.0.0.0", path:path, kb:"3203399", product:"Microsoft Project Server 2013") == HCF_OLDER)
        vuln = TRUE;
    }
    if (hotfix_check_fversion(file:"xlsrv.dll", version:"15.0.4929.1000", min_version:"15.0.0.0", path:path, kb:"3203390", product:"Office SharePoint Server 2013 Excel Services") == HCF_OLDER)
     vuln = TRUE;
    
    if (hotfix_check_fversion(file:"mssmsg.dll", version:"15.0.4937.1000", min_version:"15.0.0.0", path:path+"\1033", kb:"3203431", product:"Office SharePoint Server 2013") == HCF_OLDER)
     vuln = TRUE;

    # Files under <sps_2013_path>\WebServices\ConversionServices
    path = hotfix_append_path(path:sps_2013_path, value:"WebServices\ConversionServices");
    if (hotfix_check_fversion(file:"sword.dll", version:"15.0.4937.1000", min_version:"15.0.0.0", path:path, kb:"3203384", product:"Office SharePoint Server 2013 Word Automation Services") == HCF_OLDER)
      vuln = TRUE;

    if (hotfix_check_fversion(file:"oartserver.dll", version:"15.0.4937.1000", min_version:"15.0.0.0", path:path, kb:"3203397", product:"Office SharePoint Server 2013") == HCF_OLDER)
      vuln = TRUE;

    if (hotfix_check_fversion(file:"msoserver.dll", version:"15.0.4937.1000", path:path, kb:"3203387", product:"Office SharePoint Server 2013") == HCF_OLDER)
      vuln = TRUE;

    if (hotfix_check_fversion(file:"htmlutil.dll", version:"15.0.4937.1000", min_version:"15.0.0.0", path:path, kb:"3203388", product:"Office SharePoint Server 2013") == HCF_OLDER)
      vuln = TRUE;

    if (hotfix_check_fversion(file:"ppintl.dll", version:"15.0.4741.1000", min_version:"15.0.0.0", path:path+"\1033", kb:"3172445", product:"Office SharePoint Server 2013") == HCF_OLDER)
      vuln = TRUE;
  }

  else if (sps_2013_edition == "Foundation" && sps_2013_sp == "1")
  {
    commonfiles = hotfix_get_commonfilesdir();
    if (!commonfiles) commonfiles = hotfix_get_commonfilesdirx86();

    if(commonfiles) path = hotfix_append_path(path:commonfiles, value:"Microsoft Shared\Web Server Extensions\15\BIN");
    else path = hotfix_append_path(path:sps_2013_path, value:"BIN");
    if (hotfix_check_fversion(file:"onetutil.dll", version:"15.0.4937.1000", min_version:"15.0.0.0", path:path, kb:"3203398", product:"Office Sharepoint Foundation 2013") == HCF_OLDER)
      vuln = TRUE;

    path = hotfix_append_path(path:sps_2013_path, value:"WebServices\ConversionServices");

    if (hotfix_check_fversion(file:"msoserver.dll", version:"15.0.4937.1000", path:path, kb:"3203385", product:"Office SharePoint Foundation 2013") == HCF_OLDER)
      vuln = TRUE;
  }
}

######################################################################
# SharePoint Server 2010 SP2
######################################################################
if (sps_2010_path && sps_2010_sp == "2" && sps_2010_edition == "Server" && arch == "x64")
{
  path = hotfix_append_path(path:sps_2010_path, value:"WebServices\WordServer\Core");
  if (hotfix_check_fversion(file:"sword.dll", version:"14.0.7182.5000", path:path, kb:"3203458", product:"Office SharePoint Server 2010 Word Automation Services") == HCF_OLDER)
    vuln = TRUE;
}
  
######################################################################
# SharePoint Server 2007 SP3
######################################################################
if (sps_2007_path && sps_2007_sp == "3" && sps_2007_edition == "Server")
{
  # Only 32-bit versions are affected
  if (
    arch == "x86" ||
    (arch == "x64" && "Program Files (x86)" >< sps_2007_path)
  )
  {
    ######################################################################
    # PowerPoint Compatibility pack
    ######################################################################
    installs = get_kb_list("SMB/Office/PowerPointCnv/*/ProductPath");
    if (!isnull(installs))
    {
      foreach install (keys(installs))
      {
        path = installs[install];
        path = ereg_replace(pattern:'^(.+)\\\\[^\\\\]+\\.exe$', replace:"\1\", string:path, icase:TRUE);
        if(hotfix_check_fversion(path:path, file:"ppcnv.dll", version:"12.0.6770.5000", kb:"3127894", min_version:"12.0.0.0", product:"PowerPoint Compatability Pack SP3") == HCF_OLDER)
          vuln = TRUE;
      }
    }
  }
}

if (vuln)
{
  # CVE-2017-8514 - SharePoint Enterprise Server 2016 (KB 3203432)
  if(xss) replace_kb_item(name:'www/'+port+'/XSS', value:TRUE);

  replace_kb_item(name:'SMB/Missing/'+bulletin, value:TRUE);
  hotfix_security_hole();
  hotfix_check_fversion_end();
  exit(0);
}
else
{
  hotfix_check_fversion_end();
  audit(AUDIT_HOST_NOT, 'affected');
}

Seebug

bulletinFamilyexploit
description#A Look at CVE-2017-8514 --- SharePoint's `Follow` Feature XSS# TL;DR: All your SharePoint installations are belong to us. The XSS (worth $2500) affecting both on-premises and online version looks like ... http|https://<Any SharePoint URL Goes Here>?FollowSite=0&SiteName='-confirm(document.domain)-' SharePoint needs no more marketing given it is one of the most popular enterprise content management systems. According to [Redmond Magazine](https://redmondmag.com/articles/2015/11/10/sharepoint-server-2016-beta-2.aspx "Redmond Magazine"): "SharePoint and OneDrive are used by more than 75,000 customers, with more than 160 million users.". I am not a SharePoint MVP but as far as I can see, it comes in two flavors i.e., SharePoint on-premises and SharePoint online. Organizations prefer to use the on-premises model given it is in general only accessible over the intranet or internal network. One common use-case that I have seen or experienced in the organization is: There are many teams working in an organization for a day-to-day job e.g., HR, Marketing, Application, Legal and/or Security team etc. In SharePoint, one can have a dedicated site or page for a respective team where they can share relevant stuff (e.g., documents, news etc.) among team members and at the same time sharing outside the team is also possible. SharePoint provides fine-grained permission levels and role-based access control. SharePoint is all about sharing. In this line of direction, SharePoint provides a feature called "Follow" a site in order to get updates on site's activity in your newsfeed. One way to follow a site is to click on the "Follow" feature available at the top right of the page. It looks like ... ![](https://images.seebug.org/1497432171931-w331s) At this time, SharePoint sends a POST request to the following end-point: bbmsft.sharepoint.com/_vti_bin/client.svc/ProcessQuery (bbmsft is the tenant name in my case and this will be different in your case). I played around with that POST request but was unable to find something interesting. I observed that this is not the only way to follow a site. You can also share your site(s) with others by using the Share feature available at the top right corner. Once you send out Share invitation, on the receiving end email looks like ... ![](https://images.seebug.org/1497432183801-w331s) The "Follow" feature as a part of email's content is now available in the form of a GET request. The URL at that time looks like: [https://bbmsft.sharepoint.com/?FollowSite=1&SiteName=<\AnySiteNameGoesHere>](https://bbmsft.sharepoint.com/?FollowSite=1&SiteName=<AnySiteNameGoesHere>) The URL has two GET parameters i.e., FollowSite=1 and SiteName=<AnySiteNameGoesHere>. The FollowSite GET parameter holds a Boolean value of 0 or 1. 0 for not following and 1 for following. It is a sort of flag. The GET parameter SiteName is of our interest. It is reflected back as a part of script context like the following (watch out for the keyword ReflectionHere). In real life, this would be the name of site you want to follow. <script type="text/javascript"> //<![CDATA[ ... SP.SOD.executeFunc('followingcommon.js', 'FollowSiteFromEmail', function() { FollowSiteFromEmail('ReflectionHere'); }); ... //]]> </script> As you can see in the above code, the developers're using single quote around ReflectionHere and I found that potentially dangerous characters like ', <, > and / etc were not encoded. In order to keep it simple, the XSS payload like `'-confirm(document.domain)-'` should do the job for you. Further, I noticed that the above inline JavaScript code snippet only appears or becomes a part of DOM if GET parameters (FollowSite and SiteName) are present in the URL. The screen-shot is given below. ![](https://images.seebug.org/1497432202610-w331s) A quick PoC of this XSS on one of the test-bed I had ... ![](https://images.seebug.org/1497432214801-w331s) #####Situation In the Wild: The XSS looks simple because it only needs a SharePoint URL and simply add two GET parameters with one hold the XSS payload like: http[s]://<SHAREPOINT URL>?FollowSite=0&SiteName='-confirm(document.domain)-' Google dorking ([inurl:SitePages/Home.aspx?](https://www.google.de/search?q=inurl:SitePages/Home.aspx%3F&biw=1920&bih=974&noj=1&ei=-Q-rWMCsNOXa6ATf8biADQ&start=0&sa=N)) for SharePoint Home Page shows 19,000+ results. The SharePoint site's home page has a general format like http(s)://<Any SharePoint URL>/SitePages/Home.aspx. Some notable and vulnerable examples I was able to identify quickly from Google Dorks are given below. If you have a SharePoint site and you can see "Follow" feature on the page, than there is a great chance that you are vulnerable. Please keep in mind that following examples (Govt. sites, agencies, universities and colleges) does not include on-premises SharePoint installations. 1. https://espace2013.cern.ch/ls1planning/sitepages/home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 2. https://info.undp.org/gssu/onlinetools/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 3. http://www.karnataka.gov.in/Pages/kn.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 4. https://web.fnal.gov/organization/Finance/business/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 5. https://ocexternal.olympic.edu/PSNSOCoffice/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 6. https://www.whi.org/researchers/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 7. http://www.mapnagenerator.com/en/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 8. https://gnssn.iaea.org/NSNI/PoS/IGALL/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 9. http://www.mapnagenerator.com/en/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 10. https://www.adced.ae/sites/EN/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 11. https://www-scotland.k12.sd.us/library/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 12. http://hec.gov.pk/Urdu/scholarshipsgrants/IPHDFP5000F/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 13. https://info.spcollege.edu/Community/AP/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 14. https://www.blr.aero/Airlines/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 15. http://www.irti.org/English/Events/11th%20IDB%20Global%20Forum%20on%20Islam/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 16. https://www.ead.ae/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 17. https://my.queens.edu/its/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 18. http://www.skylineuniversity.ac.ae/sites/SUC/Portal/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 19. https://www.dmacc.edu/urban/sac/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 20. http://nfm.mjs.bg/NFMs/EN/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 21. https://cowork.us.extranet.lenovo.com/promotions/nax86vug/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 22. https://www.utp.edu.my/Academic/CSIMAL/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 23. https://rcilab.in/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 24. https://www.sgsts.org.uk/governor/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 25. https://portal.veic.org/sunshot/SitePages/Home.aspx?FollowSite=0&SiteName=%27-confirm(document.domain)-%27 #####Timeline and Bounty: Reported to Microsoft on [email protected]: 20th February 2017 Triaged and Case # Assigned email from [email protected]: 20th February 2017 and Case # was 37482 Case Reproduction Email Confirmation from [email protected]: 28th February 2017 Bounty Qualifying Email from [email protected] on 9th March 2017. 10th March 2017, email from [email protected] regarding the bounty amount which was $2500. ![](https://images.seebug.org/1497432230352-w331s) On 9th June 2017, I received an email regarding fix and patch will be released as a part of June 2017 updates. Here is the link to CVE-2017-8514: [https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/CVE-2017-8514](https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/CVE-2017-8514). Microsoft has also released a fix for a stored XSS I found in SharePoint Project. CVE-2017-8551 [https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/CVE-2017-8551](https://portal.msrc.microsoft.com/en-us/security-guidance/advisory/CVE-2017-8551) is related to that. I will try to do a write-up on that later. ![](https://images.seebug.org/1497432240539-w331s) I think, it's time to go and patch your SharePoint.
idSSV:93204
last seen2017-11-19
modified2017-06-14
published2017-06-14
reporterRoot
titleA Look at --- SharePoint's Follow Feature XSS(CVE-2017-8514 )