Bug 1347225 (CVE-2016-1000021)

Summary: CVE-2016-1000021 nodejs-cli: Insecure use of temporary files
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: tchollingsworth
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 10:43:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1347226, 1347227    
Bug Blocks:    

Description Adam Mariš 2016-06-16 10:42:29 UTC
It was found that node-cli insecurely uses the lock_file and log_file. Both of these are temporary, but it allows the starting user to overwrite any file they have access to.

lock_file = '/tmp/' + cli.app + '.pid',
log_file = '/tmp/' + cli.app + '.log';

External References:

https://nodesecurity.io/advisories/95

Comment 1 Adam Mariš 2016-06-16 10:42:55 UTC
Created nodejs-cli tracking bugs for this issue:

Affects: fedora-all [bug 1347226]
Affects: epel-all [bug 1347227]