Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...SecurityMetrics PCI Scan Failure and Telerik.Web.UI.WebResource.axd and LinkClick.aspxSecurityMetrics PCI Scan Failure and Telerik.Web.UI.WebResource.axd and LinkClick.aspx
Previous
 
Next
New Post
8/24/2015 2:53 PM
 

Hello,

We have a DNN v7.4.0 (client's) website that has recently failed a SecurityMetrics PCI compliance scan based on "Source code disclosure". The scan failure is listed below at the bottom of this thread post. The issue we are seeing with this particular failure is that the use of the script call to /Telerik.Web.UI.WebResource.axd is a common DNN core practice, and not really a source code disclosure? Additionally, the same goes for the LinkClick.aspx usage. Seems the "Resolution" as listed in the report below is not feasible given the core nature of DNN? Any thoughts on how to rectify this so we can get a clean PCI compliance scan on both accounts; or, how we might argue that it's not a vulnerability point in either case? Any details/assistance would be great. Thank you.

Title: Source code disclosure\
Impact: A modern web application will be reliant on several different programming languages. These languages can be broken up into two flavours. These are client side languages such as those that run in the browser eg. JavaScript and HTML, and server side languages that are executed by the server (ASP, PHP, JSP, etc) to form the dynamic pages (client side code) that are then sent to the client. Because all server side code should be executed by the server, it should never be seen by the client. However in some scenarios, it is possible that 1. The server side code has syntax errors and therefore is not executed by the server but is instead sent to the client, or 2. Using crafted requests it is possible to force the server into displaying the source code of the application without executing it. As the server side source code often contains sensitive information such as database connection strings or details into the application workflow this can be extremely risky. Cyber-criminals will attempt to discover pages that either accidentally or forcefully allow the server side source code to be disclosed, to assist in discovering further vulnerabilities or sensitive information. SecurityMetrics has detected server side source code within the server's response. Note: false positives may occur when requesting binary files such as images (.JPG or .PNG) and may require manual verification. Affected URL: http://www.MYDOMAIN.org/Telerik.Web.UI. WebResource.axd_?_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:88fd0407 -24cf-4abd-9df5-22f81b2bc835:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2013.2.717.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en- US:a713c6a1-0827-4380-88eb-63855ca4c2d9:16e4e7cd:b7778d6c&_TSM_HiddenField_=ScriptManager_TSM&compress=1 Affected Variable: _TSM_HiddenField_ 
Injected text: /Default.aspx%00. Variation ID: Response.Write\
Resolution: If confirmation reveals the leakage of server side source code, then the following remediation actions should be applied. Determine the context in which the source code is disclosed. ie. Caused through coding errors, or abusing existing functionality. If due to errors in the server side code, then the code causing the disclosure should be rewritten. If it is through the abuse of existing functionality then it is important that input sanitisation be conducted to prevent application files (ASP, JSP, PHP or config files) from being called. It is also important that the file system permissions are correctly configured, and that all unused files are removed from the web root. If these are not a
option, then the vulnerable file should be removed from the server.\
Risk Factor: High/ CVSS2 Base Score: 10.0\

ALSO FAILED WITH SAME TITLE, IMPACT, RESOLUTION & RISK FACTOR AS ABOVE: Affected URL: http://www.MYDOMAIN.org/LinkClick.aspx?fileticket=yn550bvwEog=&tabid=55&portalid=0&mid=762 Affected Variable: mid Injected text: /Default.aspx Variation ID: %3C%25

 
New Post
8/25/2015 10:26 AM
 
This issue comes up all of the time and it's a false positive. Any time you get any security related issues though, please send them to the DNN Corp security team at security@dnnsoftware.com.

Here is a response I've seen for this specific "issue" in the past.

Telerik.Web.UI.WebResource.axd is simply the http handler that the telerik.web.ui.dll uses to extract embedded javascript, css and images from the assembly. This is exactly the same process that asp.net uses for embedded resources from it’s various assemblies (http://scottonwriting.net/sowblog/arc... covers this well). In each case the files are client-side files that must exist for the page to process – typically they’re resources such as jquery.js –as such there is no source code disclosure i.e. a user could simply do a view source on the page to view the file contents as they are client resources

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/25/2015 10:31 AM
 
Hi Will,

Thank you for the reply and information on the WebResource.axd. SecurityMetrics also failed the site on the LinkClick.aspx usage. Have you seen anything related to arguing this as a false positive as well?

ALSO FAILED WITH SAME TITLE, IMPACT, RESOLUTION & RISK FACTOR AS ABOVE: Affected URL: http://www.MYDOMAIN.org/LinkClick.aspx?fileticket=yn550bvwEog=&tabid=55&portalid=0&mid=762 Affected Variable: mid Injected text: /Default.aspx Variation ID: %3C%25

Thank you!

 
New Post
8/25/2015 6:06 PM
 
You should email security@dnnsoftware.com to get an official response that you can provide to your certification authority. It will look a lot better than, "Will said that you're wrong in the forums." :)

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/27/2015 12:41 PM
 

The linkclick item is also a false-positive. “Linkclick’s” primary use case is to allow access to files to be restricted to certain users/roles. When a file is in a secure folder (either standard or database), then access to it is exclusively through linkclick.aspx. The linkclick code will analyse the request and then get the required file. Just before the file is written out (i.e for display or download), a check is made to ensure that the user in question is allowed access to that folder , and if so then the file is streamed down. If they are not then an exception is thrown. You can see this at this point in the code:

 

https://github.com/dnnsoftware/Dnn.Pl...

 

The reason you’re seeing a warning from SecurityMetrics is that the FileServerHandler (the http handler that processes linkclick’s), has code to extract various values, including “mid” (which is used to identify the module where the url is stored) . If the “mid” variable is not an integer an exception is thrown – for some reason SecurityMetrics believe this indicates a potentially “hackable” variable, but it’s not an issue, as no matter what parameters are used the user’s folder permissions are always validated

 

You can see the relevant code at:

 

https://github.com/dnnsoftware/Dnn.Platform/blob/7fae41929b69001a1efe0bb9c372af14c67129b7/DNN%20Platform/Library/Services/FileSystem/FileServerHandler.cs#L75


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...SecurityMetrics PCI Scan Failure and Telerik.Web.UI.WebResource.axd and LinkClick.aspxSecurityMetrics PCI Scan Failure and Telerik.Web.UI.WebResource.axd and LinkClick.aspx


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out