alpine 3.6
misc weakness #31

The software specifies permissions for a security-critical resource in a way that allows the resource to be read or modified by unintended actors.

2

Weakness Breakdown


Warning code(s):

Check when opening files - can an attacker redirect it.

File Name:

./src/ConsoleKit-0.4.6/src/main.c

Context:
if ((pf = open (CONSOLE_KIT_PID_FILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) > 0) {

The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds, owner of the mark on a world­wide basis.