This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 25, 2013, 4:21 PM
6 Posts

DominoValidateRedirectTo=1 Problem

  • Category: Configuring
  • Platform: Windows
  • Release: 9.0
  • Role: Administrator
  • Tags: DominoValidateRedirectTo,SPR# KLYH8WBPRN,KLYH8WBPRN
  • Replies: 11

I am trying to implement the fix for SPR# KLYH8WBPRN.  However, when I add DominoValidateRedirectTo=1 to the server NOTES.INI and restart the HTTP task my site breaks.  After logging in, I get the following error: 

invalid url exception [names.nsf?Login] Anonymous 

This is the url for the SPR:

http://www-10.lotus.com/ldd/fixlist.nsf/Public/30808F60A00FCFE785257B6600003FAB?OpenDocument

Any help is appreciated.

Jun 25, 2013, 7:47 PM
27 Posts
Page Source for login page
What does the Page Source for the login page look like?
Jun 27, 2013, 8:03 PM
6 Posts
Login page source

The login page is a copy of the default page in domcfg.nsf.  The only change is graphic with a custom logo.  The RedirectTo field is set to "/".  Again, it only fails if I set DominoValidateRedirectTo=1 in the server NOTES.INI file which I need to inorder to fix a security vuln.

Thanks!

Jun 28, 2013, 1:02 PM
27 Posts
Redirecto field is missing validation
Looks like the Redirecto field is missing the validation parameters (that is why it is failing),

Does it fail if the url is something other then the root url, for example /<somedbthatneedsauth>.nsf?Open etc ?

Thanks
Jun 28, 2013, 1:37 PM
6 Posts
Redirecto field is missing validation

I will give it a try this weekend(production server) and let you know on Monday.

Thanks!

Aug 6, 2013, 1:08 PM
6 Posts
DominoValidateRedirectTo=1 Problem

I have tried every form of redirect possible on this but everything fails once I set DominoValidateRedirectTo=1   Does anyone have any info that explains how this is supposed to work?  My security group is really pushing to get this resolved.

Thanks

Aug 15, 2013, 7:30 PM
27 Posts
how it works
When the ini is set, and when the login page html is generated by the Domino Server the URL set in hidden Redirecto field should  have an extra temporary query string argument appended to it. That argument  appears as $$_vrd2=<validation token>.  When the form is posted the login processing will use that token to validate if the redirect to URL to make sure it has not been hacked/changed.  If the token is not present or the URL cannot be validated then the login request is rejected.   The extra query argument is stripped off before doing the redirection after login.

If for some reason the login form has some other way of specifying the redirect to URL (the domino server does not generate it or is overridden with something else). The the token will not be present and the login request is rejected.


So for example, if the incoming URL that causes a login page to appear looks like /foo.nsf?Open, the redirectto url in the login form should look like /foo.nsf?Open&$$_vrd2=<validation token>


When the form is posted the login processing will take the <validation token> and verify it before login, if okay we do the login and redirect back to the orginal url /foo.nsf?Open.  If the validation fails then login fails.


 In your case the redirectto field should be set to /?$$_vrd2=<validation token> and if login is successful then we would redirect back to / and strip off the ?$$_vrd2 query arg.

If this continues to be a problem, the next step will be to raise a pmr.  There may be something about your use case and your login form that is causing things not to work.

 
Oct 27, 2014, 11:49 AM
6 Posts
DominoValidateRedirectTo=1 and "Force login on SSL"

We where having a similar problem after we set DominoValidateRedirectTo to 1 but not on all our sites.

To diagnose the problem I checked the source of the login pages for our sites where it was working and where it was not.  All the sites had the $$_vrds=<token> but on the sites where it worked the URL was a relative reference with an absolute path, and on the site where we got the Invalid URL exception it was an absolute URI.  

To be clear this is an relative reference where it would work:

    /sales/orders.nsf&$$_vrd2=token
    
this is an absolute URI where is would not work:

    http://apps.company.com/sales/orders.nsf&$$_vrd2=token
    
We started looking for differences between the set up for these sites.  We disregarded the login form as it is a simple modification of the default from domcfg.nsf and the same form is used on sites that work and do not.  In one instance we have two sites running on the same Domino server but with different internet site documents, one works and one does not.  The main difference between them is the site that works was set to redirect all TCP to SSL where the site that does not work is only set to force login on SSL.

Our conclusion is that when "Force login on SSL" is set to "Yes" the redirectTo value in the login form is an absolute URI.  This makes sense as it allows the login to use HTTPS but switch back to HTTP afterwards.  The problem is that DominoValidateRedirectTo seems to fail with absolute URIs.

To work around the problem we have found you can either set the entire site to use HTTP (security department would not be pleased) or set the entire site to use HTTPS.

Oct 27, 2014, 1:16 PM
328 Posts
Do either of these vulnerabilities apply to 9.0.1?

Do either of these vulnerabilities apply to 9.0.1? How can I test each on?

Thanks!

Oct 27, 2014, 2:41 PM
6 Posts
9.0.1 FP2

Mark,

All our servers in these cases are running Domino 9.0.1 FP2.

Oct 27, 2014, 3:07 PM
328 Posts
How can I test whether the vulnerability exists?

How can I test whether the vulnerability exists - so that i can test whether the notes.ini 'fix' works?

This is the first I've seen of this vulnerability, and it seems kinda odd that the fix requires an Admin to be proactive (add a notes.ini parm) as opposed to adding a notes.ini parm to disable the fix - the difference being that all servers would be patched unless the admin decided to disable it.

Thanks!

Oct 27, 2014, 5:29 PM
6 Posts
Testing redirection

I tested this using Firebug to manipulate the value of the redirectTo field on the log in form.  With DominoValidateRedirectTo=0 I could happily redirect the login form to any page I like.  With it set to 1 any tampering would result in a HTTP 500 Invalid URL Exception.  I'm not a hacker but I assume using some carefully crafted URL or link could do the same.


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal