Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login to ASPX CSRF secured websites #17

Open
stebiger opened this issue Apr 21, 2017 · 2 comments
Open

Can't login to ASPX CSRF secured websites #17

stebiger opened this issue Apr 21, 2017 · 2 comments
Labels

Comments

@stebiger
Copy link

Hey bahmutov,

I just experimented in accessing a CSRF protected ASPX Login form - unfortunately I was not able to do any successfull login.

The ASPX Login seems to have more than one hidden field so in the first steps I simply enhanced your code to gather up to three tokens from the page and add it to the form during the post.

I checked and saw they were successfully added with wireshark by inspecting the POST.
Anyhow I always get referred back to the login page.

As my understanding of ASPX is pretty almost nothing more than what I have already found out and written here I thought maybe you have an idea and perhaps this could be a nice feature for csrf-login.

@bahmutov
Copy link
Owner

hmm, I guess we would need more info to debug this problem, weird that the backend does not like it

@stebiger
Copy link
Author

stebiger commented May 2, 2017

To reproduce a problem have a look at any CSRF-protected Login-Site that is developed with APSX .NET.

Have a look at the sourcecode and see, that there are more than just one hidden token field (it consists of three).
In Addition I think these information (or other information) will then have to be included in the cookie.
I am sorry I can not assist you with further inforamtion as I did not succeed in using csrf-login to login to such a site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants