gogsownz icon indicating copy to clipboard operation
gogsownz copied to clipboard

Invalid CSRF token

Open t00ny opened this issue 6 years ago • 2 comments

Make the tool print the _csrf cookie alongside the session key, as sometimes you will get an invalid csrf token error depending on what you are doing.

Other than that, great work.

t00ny avatar Jul 03 '19 19:07 t00ny

I can confirm that I also encountered some csrf issues when using existing cookie as credentials. More specifically, when creating the repository, the csrf token is rejected when using cookie method to authenticate. I have to admit I did not look further into it and just used the plaintext credentials instead.

pollev avatar Jul 04 '19 07:07 pollev

It's highly probable. The script is pretty bad (sincerely speaking) but (most of the time) do the job. I will look into it ASAP. In the meantime, if you get some CSRF token error please report the script output so we can see what's the troubling call.

Thanks.

TheZ3ro avatar Jul 28 '19 21:07 TheZ3ro