Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: Grouper UI CSRF error -- required token is missing from the request

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: Grouper UI CSRF error -- required token is missing from the request


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Shaun Koh <>, "" <>
  • Subject: [grouper-users] RE: Grouper UI CSRF error -- required token is missing from the request
  • Date: Thu, 3 Nov 2016 13:33:27 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:m4VFlxb7Mn1JGxNfR+q55Lr/LSx+4OfEezUN459isYplN5qZpM+/bnLW6fgltlLVR4KTs6sC0LuM9fC/EjZQqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ3p7xh7/5oc2bSj4LrQL1Wal1IhSyoFeZnegtqqwmFJwMzADUqGBDYeVcyDAgD1uSmxHh+pX4p8Y7oGx48sgs/M9YUKj8Y79wDfkBVGxnYCgJ45jQtRDeS0Os4XtUBn4WmwdORQvC7DnzQ5zytiL8uqx002+cL5uyBfo7QzO/96pxDQLzhT0cHz8/7GzNjMFs1uRWrA/r70hw2YnJeIyPcedlc7nGVdIcWWdbWMtNDWpMDp7qPKUVCO9Ud8ZJvYTn4xMlrQG/HkPkUObkyi5ai2Xe3LYxlfk5HAfAmgEsAoRd4zzvsNzpOfJKAqiOx67SwGCGNqsO1A==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

What version and patch level?

 

Maybe try adding this to Owasp.CsrfGuard.overlay.properties:

 

org.owasp.csrfguard.unprotected.GrouperUiNoSlash=%servletContext%/grouperUi

 

There is already an entry with a slash, maybe need one without??

 

Thanks

Chris

 

 

From: [mailto:] On Behalf Of Shaun Koh
Sent: Thursday, November 03, 2016 12:22 AM
To:
Subject: [grouper-users] Grouper UI CSRF error -- required token is missing from the request

 

Hi there,

 

We’ve run into an error when attempting to access the UI that says `Maybe your session timed out and you need to start again. This should not happen under normal operation. CSRF error.`.

 

We use Shibb SSO for our authN and from the debug/error logs, it seems that users are being successfully matched against subjects in the DB though the redirect to /grouper/grouperUi is being marked as a potential CSRF attack apparently due to missing token in the request:

 

2016-11-03 17:02:40,432: [http-8080-3] DEBUG GrouperUiFilter.remoteUser(638) -  - httpServletRequest.getRemoteUser(): null, UOAid header: ${some_user_id}, remoteUser overall: ${some_user_id},

2016-11-03 17:02:40,433: [http-8080-3] INFO  EventLog.info(156) -  - [ccc13c1558c14e6f8d9eb7bb0892c8ac,'GrouperSystem','application'] session: start (1ms)

2016-11-03 17:02:40,433: [http-8080-3] INFO  CsrfGuardLogger.log(26) -  - CsrfGuard analyzing request /grouper/index.jsp

2016-11-03 17:02:40,481: [http-8080-3] INFO  CsrfGuardLogger.log(26) -  - CsrfGuard analyzing request /grouper/grouperUi

2016-11-03 17:02:40,482: [http-8080-3] ERROR CsrfGuardLogger.log(47) -  - potential cross-site request forgery (CSRF) attack thwarted (user:<anonymous>, ip:${some_ip}, method:GET, uri:/grouper/grouperUi, error:required token is missing from the request)

 

I’ve had a look at similar threads in the mailing lists though none of the solutions worked for us.

 

Also, this only happens in our DEV environment and not TEST which worked seamlessly until 2-3 days ago. -- I do not recall us making any changes that may have caused this issue.

 

Any help or suggestions would be much appreciated.

 

Best Regards,

Shaun K.




Archive powered by MHonArc 2.6.19.

Top of Page