Gratipay · Report #163815
Lack of CSRF token validation at server side
Informativestatus
1upvotes
10 Jul 2017disclosed
How it was found
Description: Gratipay is not validating csrf token at server side for few requests. So csrf protection is not implemented application wide.
Proof of concept (Video):https://drive.google.com/file/d/0B8z7y7DxxQbwUHY4YTduYzMxbnc/view?usp=sharing
Recommended Fix: For CSRF Protection:
- Each critical operation request must be accompanied with a "token" •Token is:
- Long, Random, not repeated for application lifetime.
- Unique per session or even per operation
- Part of URL in GET
- Hidden Field in POST (forms)
- Attacker cannot know / predict this token and hence cannot create requests to exploit the operation.