The example provided on reCAPTCHA Enterprise frictionless assessment, uses the following rule to detect an action on the login page and allows it:
request.path.matches(\\"/login.html\\") && token.recaptcha_action.score >= 0.8
However, is not clear if the request.path on the rule refers to a Front-End (website) route or a backend route. If it refers to the latter: What is needed to craft an equivalent rule for a GraphQL endpoint? on GraphQL there is a single path /graphql using always the POST method for all the actions.
Would be the rule below enough?
token.recaptcha_action.action === 'login' && token.recaptcha_action.score>= 0.8
What if an attacker decides to call directly to the API where reCAPTCHA Enterprise doesn't exists? Maybe I am missing some piece of information but I don't see how the tool would solve this problem for a GraphQL endpoint.
Any comment is greatly appreciated!
