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...Administration ...Administration ...DNN error when the URL contains a ../ in the querystringDNN error when the URL contains a ../ in the querystring
Previous
 
Next
New Post
11/2/2010 11:02 PM
 
Hello,

There is a long story behind this but a third party is redirecting results from their site to DNN.  The URL that they are using to send the user back to our DNN site contains the characters ../

The URL looks something like this: 

[domain name]/Default.aspx?tabid=564&Token=FF537B18-8FEE-41A5-8F3A-648A65D83F76&ContinueURL=http://iweb.signs.org/iWeb/Profile/../messagePage.aspx%3fKey%3daccountOKMsg%26Icon%3diconMsgOk%26Module%3d10

The above URL causes the generic DNN error page to be displayed.  If I remove the ../ between Profile/../messagePage.aspx, then the page is displayed in DNN fine.  Why does the ../ cause an error.

We are running DNN 5.5 on IIS 6 and Windows Server 2003.  I am not sure if this is a DNN issue or an IIS issue.

 
New Post
11/8/2010 4:45 PM
 
What is the error message that you get when you have the full URL?

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
11/8/2010 6:10 PM
 
tkr : the DNN Url Rewriting contains an explicit check to throw a 404 error if ../ is detected anywhere in the Url.  That's why you see the DNN Error page, probably because you have 5.5.1 which just throws the DNN error page on any error (including 404s)

This is because the use of ../ is an attack vector that hackers can use to try and gain access to folders in a site that they aren't authorised for.

The comments in the code are thus:
fix for ASP.NET canonicalization issues http://support.microsoft.com/?kbid=88...

My suggestion would be request that the Url is passed along differently.  Otherwise you'd have to compile a custom version of the Url Rewriting with that particular piece of security checking code removed.

HTH
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN error when the URL contains a ../ in the querystringDNN error when the URL contains a ../ in the querystring


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