I am playing around with a test application which accepts JSON requests and response is also JSON. I am trying to do a CSRF for a transaction which accepts only JSON data with POST method in request. Application throws an error if URL is requested using get method (e.g. in
Also for the attack to be meaningful i.e. transaction to go through, I have to send the data in the request. If I create my own page and send the JSON requests, cookies do not travel and hence server returning an unauthenticated error message.
There are no random tokens in original request by server.
I was wondering is there any way to carry out a successful CSRF attack in this scenario.
Please feel free to edit the question. Any help is much appreciated