gpchelkin / scdlbot

Hardcoded temporary directory detected BAN-B108
Security
Major
6 months ago5 years old
Probable insecure usage of temp file/directory.
  66TG_BOT_OWNER_CHAT_ID = int(os.getenv("TG_BOT_OWNER_CHAT_ID", "0"))
  67
  68CHAT_STORAGE = os.path.expanduser(os.getenv("CHAT_STORAGE", "/tmp/scdlbot.pickle"))
  69DL_DIR = os.path.expanduser(os.getenv("DL_DIR", "/tmp/scdlbot"))  70BIN_PATH = os.getenv("BIN_PATH", "")
  71scdl_bin = local[os.path.join(BIN_PATH, "scdl")]
  72bcdl_bin = local[os.path.join(BIN_PATH, "bandcamp-dl")]
Probable insecure usage of temp file/directory.
  65    HTTP_VERSION = "1.1"
  66TG_BOT_OWNER_CHAT_ID = int(os.getenv("TG_BOT_OWNER_CHAT_ID", "0"))
  67
  68CHAT_STORAGE = os.path.expanduser(os.getenv("CHAT_STORAGE", "/tmp/scdlbot.pickle"))  69DL_DIR = os.path.expanduser(os.getenv("DL_DIR", "/tmp/scdlbot"))
  70BIN_PATH = os.getenv("BIN_PATH", "")
  71scdl_bin = local[os.path.join(BIN_PATH, "scdl")]