CSRF warnings

Lipscomb, Gary glipscomb at csu.edu.au
Fri Mar 26 01:01:44 UTC 2021


Further investigation
https://wiki.shibboleth.net/confluence/display/DEV/Anti-CSRF+FlowExecutionListener+Implementation 

It is recommended the following view-states are not excluded.
LocalStorageRead	client-storage-read.vm, read.vm
LocalStorageWrite	local-storage-write.vm, write.vm

Did these 2 views get missed from here

https://wiki.shibboleth.net/confluence/display/IDP4/Cross-Site+Request+Forgery+%28CSRF%29+Protection#CrossSiteRequestForgery(CSRF)Protection-EnablingAfterUpgrade

regards
Gary

-----Original Message-----
From: users <users-bounces at shibboleth.net> On Behalf Of Lipscomb, Gary via users
Sent: Friday, 26 March 2021 11:11
To: Shib Users <users at shibboleth.net>
Cc: Lipscomb, Gary <glipscomb at csu.edu.au>
Subject: CSRF warnings

Hi,

IdP v4.0
RHEL 8
Tomcat 9

We have just moved to IdP v4.0, a new install, and have idp.csrf.enable = true and seeing these errors intermittently in the logs


2021-03-26 09:56:50,190 - redactedIP-1 - WARN [net.shibboleth.idp.ui.csrf.impl.CSRFTokenFlowExecutionListener:183] - CSRF token is required but was not found in the request; for view-state 'LogoutCompleteView' and event 'proceed'.
2021-03-26 10:28:21,081 - redactedIP-2  - WARN [net.shibboleth.idp.ui.csrf.impl.CSRFTokenFlowExecutionListener:183] - CSRF token is required but was not found in the request; for view-state 'LogoutCompleteView' and event 'proceed'.

We have customised the idp.home/views/logout.vm, have I missed re-adding a csrf setting, though I couldn’t see anything in the vanilla release logout.vm

2021-03-26 10:47:29,498 - RedactedIP-3 - WARN [net.shibboleth.idp.ui.csrf.impl.CSRFTokenFlowExecutionListener:193] - CSRF token in the request did not match that stored in the view-scope; for view-state 'LocalStorageRead' and event 'proceed'.
2021-03-26 10:47:29,499 - RedactedIP-3 - WARN [org.opensaml.profile.action.impl.LogEvent:101] - A non-proceed event occurred while processing the request: InvalidCSRFToken
2021-03-26 10:51:40,807 - RedactedIP-4 - WARN [net.shibboleth.idp.ui.csrf.impl.CSRFTokenFlowExecutionListener:193] - CSRF token in the request did not match that stored in the view-scope; for view-state 'LocalStorageRead' and event 'proceed'.
2021-03-26 10:51:40,808 - RedactedIP-4 - WARN [org.opensaml.profile.action.impl.LogEvent:101] - A non-proceed event occurred while processing the request: InvalidCSRFToken

I think this may relate to attribute-release and we have added #parse("csrf/csrf.vm") to that view

Is there anything else I may have missed.

Regards

Gary

Gary Lipscomb
Technical Officer, Systems(Infrastructure) | Infrastructure & Client Services | Division of Information Technology
Charles Sturt University




|   ALBURY-WODONGA   |   BATHURST   |   BRISBANE   |   CANBERRA   |   DUBBO   |   GOULBURN   |   MELBOURNE   |   ORANGE   |   PORT MACQUARIE   |   SYDNEY   |   WAGGA WAGGA   |

LEGAL NOTICE
This email (and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone. Any confidentiality is not waived or lost by reason of mistaken delivery. Email should be checked for viruses and defects before opening. Charles Sturt University does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with Charles Sturt University may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at Charles Sturt University. The views expressed in this email are not necessarily those of Charles Sturt University.
Charles Sturt University in Australia The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551; CRICOS Provider Number: 00005F (National)). TEQSA Provider Number: PV12018
Consider the environment before printing this email.
-- 
For Consortium Member technical support, see https://wiki.shibboleth.net/confluence/x/coFAAg
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net


More information about the users mailing list