Skip to content

possible shell injection in AptOfflineCoreLib.py #1

@TheRegRunner

Description

@TheRegRunner

Because of the os.system call ,
AptOfflineCoreLib.py is vulnerable to shell command injections in 4 ways.

  1. if there is a shell command in the path, for example /tmp/$(xterm)/gpgv/
  2. in the "keyring" text
  3. in the name of the "signature file"
  4. in the name of the "signed_file", for example ;xmessage hello;#.gpg

screenshot

So, please use subprocess, not os.system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions