You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Campbell, Lance" <la...@illinois.edu> on 2020/04/23 17:57:27 UTC

Tomcat Upgrade Issue from 9.0.30 to 9.0.31

I am upgrading from Tomcat 9.0.30 to 9.0.31 . This same issue occurs with any newer version of Tomcat as well. I have been using Tomcat since the earliest version.  I have never had an issue with upgrading or installing until now.

I have a Apache web server with mod_jk and mod_shib.  I have a separate tomcat application server.  When I upgraded from 9.0.30 to 9.0.31 Shibboleth secured tomcat web pages will not work.  Non Shibboleth pages work fine.  If I revert tomcat to 9.0.30 it works fine.  I have a feeling that there is something new between these two versions that is preventing the passing of shibboleth information.

When I go to a web page that is protected by Shibboleth I get a HTTP Status 403 – Forbidden.

In Shibboleth I see no errors.
Tomcat does not appear to be able to get the page request.
I see the error in the apache web server log when it tries to send the request to the Shibboleth IDP.

What am I missing?  I would imagine other people have had this issue.

Thanks,

LANCE CAMPBELL<https://directory.illinois.edu/person/lance>
Software Architect

Web Services<https://webtools.illinois.edu/>
Public Affairs<https://publicaffairs.illinois.edu/>
Contact the Webtools Team<https://go.illinois.edu/contactUs>
217.333.0382
lance@illinois.edu<ma...@illinois.edu>


[/var/folders/wp/1f6l7hw95y718z976kgnl5f9kr5rtc/T/com.microsoft.Outlook/WebArchiveCopyPasteTempFiles/signature_logo.png]<http://illinois.edu/>

Under the Illinois Freedom of Information Act any written communication to or from university employees regarding university business is a public record and may be subject to public disclosure.


Re: Tomcat Upgrade Issue from 9.0.30 to 9.0.31

Posted by "Campbell, Lance" <la...@illinois.edu>.
That was it.  I lost an entire day on that.  I greatly appreciate your time!

Lance

On 4/23/20, 1:30 PM, "Mark Thomas" <ma...@apache.org> wrote:

    On 23/04/2020 18:57, Campbell, Lance wrote:
    > I am upgrading from Tomcat 9.0.30 to 9.0.31 . This same issue occurs
    > with any newer version of Tomcat as well. I have been using Tomcat since
    > the earliest version.  I have never had an issue with upgrading or
    > installing until now.
    > 
    > I have a Apache web server with mod_jk and mod_shib.  I have a separate
    > tomcat application server.  When I upgraded from 9.0.30 to 9.0.31
    > Shibboleth secured tomcat web pages will not work.  Non Shibboleth pages
    > work fine.  If I revert tomcat to 9.0.30 it works fine.  I have a
    > feeling that there is something new between these two versions that is
    > preventing the passing of shibboleth information.
    > 
    > When I go to a web page that is protected by Shibboleth I get a *HTTP
    > Status 403 – Forbidden.*
    > 
    > In Shibboleth I see no errors.
    > 
    > Tomcat does not appear to be able to get the page request.
    > 
    > I see the error in the apache web server log when it tries to send the
    > request to the Shibboleth IDP.
    > 
    > What am I missing?  I would imagine other people have had this issue.
    
    I'm guessing that Shibboleth passes information from httpd to Tomcat via
    request attributes. Part of the tightening up of security as a result of
    CVE-2020-1938 was restricting the acceptable request attributes.
    
    See allowedRequestAttributesPattern in
    
    http://tomcat.apache.org/tomcat-9.0-doc/config/ajp.html#Standard_Implementations
    
    The quick and dirty test is to set allowedRequestAttributesPattern=".*"
    for your AJP connector and see if that fixes it.
    
    If it does, you need to find out what request attributes Shibboleth is
    setting and then create a pattern to allow them (the pattern only needs
    to match the extra ones, the standard ones are always allowed through).
    
    We don't currently log the problematic attributes. Enabling debug
    logging for mod_jk should allow you to figure out the request names if
    the Shibboleth documentation doesn't document them.
    
    Mark
    
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
    For additional commands, e-mail: users-help@tomcat.apache.org
    
    


Re: Tomcat Upgrade Issue from 9.0.30 to 9.0.31

Posted by Mark Thomas <ma...@apache.org>.
On 23/04/2020 18:57, Campbell, Lance wrote:
> I am upgrading from Tomcat 9.0.30 to 9.0.31 . This same issue occurs
> with any newer version of Tomcat as well. I have been using Tomcat since
> the earliest version.  I have never had an issue with upgrading or
> installing until now.
> 
> I have a Apache web server with mod_jk and mod_shib.  I have a separate
> tomcat application server.  When I upgraded from 9.0.30 to 9.0.31
> Shibboleth secured tomcat web pages will not work.  Non Shibboleth pages
> work fine.  If I revert tomcat to 9.0.30 it works fine.  I have a
> feeling that there is something new between these two versions that is
> preventing the passing of shibboleth information.
> 
> When I go to a web page that is protected by Shibboleth I get a *HTTP
> Status 403 – Forbidden.*
> 
> In Shibboleth I see no errors.
> 
> Tomcat does not appear to be able to get the page request.
> 
> I see the error in the apache web server log when it tries to send the
> request to the Shibboleth IDP.
> 
> What am I missing?  I would imagine other people have had this issue.

I'm guessing that Shibboleth passes information from httpd to Tomcat via
request attributes. Part of the tightening up of security as a result of
CVE-2020-1938 was restricting the acceptable request attributes.

See allowedRequestAttributesPattern in

http://tomcat.apache.org/tomcat-9.0-doc/config/ajp.html#Standard_Implementations

The quick and dirty test is to set allowedRequestAttributesPattern=".*"
for your AJP connector and see if that fixes it.

If it does, you need to find out what request attributes Shibboleth is
setting and then create a pattern to allow them (the pattern only needs
to match the extra ones, the standard ones are always allowed through).

We don't currently log the problematic attributes. Enabling debug
logging for mod_jk should allow you to figure out the request names if
the Shibboleth documentation doesn't document them.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org