Opened 2 years ago

Last modified 2 years ago

#26993 new defect

Tor silently ignores hidden directory when it isn't writable

Reported by: yurivict271 Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor:
Severity: Normal Keywords: tor-bsd, tor-hs
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


I added HiddenServiceDir and HiddenServicePort to torrc.

When the empty HS directory has permissions 0600, tor starts without creating the HS and without complaining. It should either fail to start, or print a warning that the HS directory isn't writable.

When permissions is 300 though, tor complains that 'Directory x cannot be read'.

tor- on FreeBSD-12

Child Tickets

Change History (2)

comment:1 Changed 2 years ago by teor

Component: Core TorCore Tor/Tor
Keywords: tor-bsd tor-hs added
Milestone: Tor: unspecified
Version: Tor:

Hi, thanks for this bug report.

Just to clarify, permissions 0600 means rw-------, or "list files, add files, but not access files via the directory".

So you're right, tor should probably check for access permissions and log a warning.

comment:2 Changed 2 years ago by yurivict271

If the directory is empty, it needs to have 0700, if the files are there it needs 0500.

Note: See TracTickets for help on using tickets.