Skip to content

What is the risk of using api flow in browser? #2134

Answered by vinckr
wenqi73 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @wenqi73

I recommend this article if you want to learn more about CSRF, SPA and potential attacks: http://codyaray.com/2020/08/vulnerable-csrf-attacks

The risk is not trivial:

CSRF is an attack that tricks the victim into submitting a malicious request. It inherits the identity and privileges of the victim to perform an undesired function on the victim’s behalf. For most sites, browser requests automatically include any credentials associated with the site, such as the user’s session cookie, IP address, Windows domain credentials, and so forth. Therefore, if the user is currently authenticated to the site, the site will have no way to distinguish between the forged request sent by …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants