Closed Bug 54266 Opened 26 years ago Closed 25 years ago

World-readable unix-domain sockets on Linux.

Categories

(Core :: Security: PSM, defect, P3)

1.0 Branch
x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: tenthumbs, Assigned: junruh)

Details

PSM does not set the permissions on the unix-domain sockets it creates in /tmp so they they are created with the user's default permissions mdoulo the user's umask. That often means the sockets are world-readable. For example, with today's build and a psm 1.2 srwxr-xr-x 1 501 100 0 Sep 26 15:46 /tmp/.nsmc-501 -rw------- 1 501 100 0 Sep 26 15:46 /tmp.nsmc-501-lock Note that the permissions are changed for the lock file. The problem is in psm/server/servutil.c in SSL_OpenControlPort. The socket is created and bound to the filename but no chmod-like function is invoked.
Severity: normal → critical
BTW: Why that "s"?
Version: 1.01 → 1.2
The "s" just indicates that it's a socket. It's not the same thing as a setuid bit.
Changing QA contact to nitinp
QA Contact: lord → nitinp
Reassigning to ddrinan.
Assignee: lord → junruh
QA Contact: nitinp → junruh
Reporter, is this still a problem now that PSM 2.0 is included in the Mozilla nightly builds?
PSM 2.0 doesn't create such a socket. This was fixed by the PSM 2.0 landing.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm1.2 → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.