Skip to content

Usage of XMLHttpRequest in a WebComponent with Google Polymer 1.x #205

Answered by forgedhallpass
eitch asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @eitch,

Unfortunately I am not familiar with Google Polymer, but if it uses XMLHttpRequests internally and the csrfguard.js script runs first, which overrides some of the functions then it should theoretically work.

The documentation of the TokenPerPage configuration can be found in the csrfguard.properties file. If it is disabled then there will not be unique tokens assigned to different endpoints, and the solution will only use a single masterToken. Both can prevent basic CSRF attacks, but if you have an XSS vulnerability in your solution, it will be hardER (not impossible) to exploit if the TokenPerPage is enabled, because more logic is needed for it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by forgedhallpass
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
Converted from issue

This discussion was converted from issue #195 on June 03, 2023 00:10.