Opened 12 months ago

Last modified 12 months 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: 0.3.3.7
Severity: Normal Keywords: tor-bsd, tor-hs
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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-0.3.3.7 on FreeBSD-12

Child Tickets

Change History (2)

comment:1 Changed 12 months ago by teor

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

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 12 months 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.