cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

Bad CSRF Token when attempting to whitelist hashes from API

L1 Bithead

Hey everyone,

 

We are trying to whitelist a bulk of hashes using the Cortex XDR API (because the UI isn't working, we have an open case with support). The request always return the same error:

 

YAlhazmi_1-1611398325577.png

 

400 Bad CSRF Token

Access is denied. This server can not verify that your cross-site request forgery token belongs to your login session. Either you supplied the wrong cross-site request forgery token or your session no longer exists. This may be due to session timeout or because browser is not supplying the credentials required, as can happen when the browser has cookies turned off.

check_csrf_token(): Invalid token

 

This error ONLY shows up when we attempt to whitelist hashes. We can retrieve incidents and alerts using the same code (and hence same API key and ID) without any problem. The image below shows that it has key should be able to update the allow list.

 

YAlhazmi_0-1611398274835.png

 

The url: "https://api-{domain}/public_api/v1/hash_exceptions/allow_list/"

 

Any ideas are appreciated!

 

P.S. This is the error from the UI

YAlhazmi_0-1611398975491.png

 

Who Me Too'd this topic