Closed
Bug 54266
Opened 26 years ago
Closed 25 years ago
World-readable unix-domain sockets on Linux.
Categories
(Core :: Security: PSM, defect, P3)
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.
Updated•26 years ago
|
Severity: normal → critical
Comment 1•26 years ago
|
||
BTW: Why that "s"?
Updated•26 years ago
|
Version: 1.01 → 1.2
Comment 2•26 years ago
|
||
The "s" just indicates that it's a socket. It's not the same thing as a
setuid bit.
| Assignee | ||
Comment 4•25 years ago
|
||
Reassigning to ddrinan.
Assignee: lord → junruh
QA Contact: nitinp → junruh
| Assignee | ||
Comment 5•25 years ago
|
||
Reporter, is this still a problem now that PSM 2.0 is included in the Mozilla
nightly builds?
Comment 6•25 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•