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

check size of cookie file #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

check size of cookie file #12

wants to merge 1 commit into from

Conversation

joeyh
Copy link

@joeyh joeyh commented Aug 29, 2016

The documentation notes that the cookie file is always 32 bytes, and
requires that any other size file not be used as an auth cookie.

This is a very basic guard against tor asking for any file as a cookie.
It's not sufficient to really secure the cookie auth method. This is a
stopgap measure until SECURECOOKIE can be implemented.

The documentation notes that the cookie file is always 32 bytes, and
requires that any other size file not be used as an auth cookie.

This is a very basic guard against tor asking for any file as a cookie.
It's not sufficient to really secure the cookie auth method. This is a
stopgap measure until SECURECOOKIE can be implemented.
@sternenseemann
Copy link

I guess this solves the issue of #10 until the cookie auth method gets removed from tor eventually.

@joeyh
Copy link
Author

joeyh commented Aug 29, 2016

This does not solve the issue at all. The user could have a 32 byte secret file and tor could still read it. This is only a quick patch that reduces the attack space significantly, it's not a fix.

@sternenseemann
Copy link

Yeah of course but better than nothing.

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

Successfully merging this pull request may close these issues.

2 participants