Skip to content

possible shell injection in notifyd.py #2

@TheRegRunner

Description

@TheRegRunner

If the filename of the sound_file contains shell commands, they are passed to a shell.

Example Sound File Name

";xmessage hello;#".wav

This is the code wich plays the sound , os.system should be replaced with subprocess

def play(sound_file):
def play_wrapper(msg):
os.system('/usr/bin/aplay "%s" 2> /dev/null &' % sound_file)
return play_wrapper

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions