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

Need CSRF token and POST request for creating and deleting comments #3966

Open
tsparksh opened this issue Nov 14, 2018 · 8 comments
Open

Need CSRF token and POST request for creating and deleting comments #3966

tsparksh opened this issue Nov 14, 2018 · 8 comments
Labels
help wanted requires help by anyone willing to contribute Ruby

Comments

@tsparksh
Copy link
Member

Please describe the problem (or idea)

What happened just before the problem occurred? Or what problem could this idea solve?
Comments can be created or deleted without checking the CSRF token with GET request
deepin-screen-recorder_select area_20181114223701

SImple payload:

<div><img src="https://publiclab.org/comment/answer_create/1254?body=csrf" id="img"></div>
<script>
	var img = document.getElementById("img");
	img.parentNode.removeChild(img);
</script>

Where 1254 - Answer id

Please show us where to look

https://publiclab.org/

What's your PublicLab.org username?

catimail123

Browser, version, and operating system

Any browser, any system


@jywarren
Copy link
Member

jywarren commented Nov 14, 2018 via email

@tsparksh
Copy link
Member Author

tsparksh commented Nov 14, 2018

Thank you! Sorry I missed a few. Deleted.

@jywarren
Copy link
Member

jywarren commented Nov 14, 2018 via email

@tsparksh
Copy link
Member Author

tsparksh commented Nov 15, 2018

Also I guess csrf token is needув for likes and dislikes
It also using get request now (like https://publiclab.org/likes/node/123/create)

Anyone can do this?

@jywarren
Copy link
Member

jywarren commented Nov 20, 2018 via email

@grvsachdeva grvsachdeva added the help wanted requires help by anyone willing to contribute label Dec 23, 2018
@grvsachdeva
Copy link
Member

grvsachdeva commented Dec 23, 2018

Hi @thesparks would you like to solve this one? Thanks!

@tsparksh
Copy link
Member Author

tsparksh commented Dec 24, 2018 via email

@grvsachdeva
Copy link
Member

Okay, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted requires help by anyone willing to contribute Ruby
Projects
None yet
Development

No branches or pull requests

3 participants