Descrizione
Net::Server::PreFork versions through 2.018 for Perl let local users stop the server accepting connections by locking a lock_file that other users can read.
With lock_file set, each PreFork and PreForkSimple child opens the file for writing with default permissions, mode 0666 less the umask, which is usually readable by other users. Outside Windows the children serialize accept with an exclusive flock on that file, and flock needs only a read-only handle.
A local user who can open the file and hold the lock keeps every child from accepting connections for as long as they hold it. A server without lock_file uses a temporary lock file with mode 0600 and is not affected.
Tipo di vulnerabilità
CWE-412
Unrestricted Externally Accessible Lock
The product properly checks for the existence of a lock, but the lock can be externally controlled or influenced by an actor that is outside of the intended sphere of control.
Impatto sui sistemi
| Ambito | Impatto |
| Disponibilità |
Interruzione del servizio: esaurimento di risorse |
Come si previene
Architettura e progettazione · Sviluppo
Use any access control that is offered by the functionality that is offering the lock.
Architettura e progettazione · Sviluppo
Use unpredictable names or identifiers for the locks. This might not always be possible or feasible.
Architettura e progettazione
Consider modifying your code to use non-blocking synchronization methods.
Tutte le 8 CVE di tipo CWE-412, con andamento e prevenzione