athphane / userbot

Starting a process with a shell detected BAN-B605
Security
Major
6 months ago4 years old
Starting a process with a shell, possible injection detected, security issue.
29                    f'venv\\Scripts\\activate && python userbot\\helpers\\skyrim.py "{text}" {level}'
30                )
31            else:
32                os.system(33                    f'. venv/bin/activate && python userbot//helpers//skyrim.py "{text}" {level}'34                )35        except Exception:
36            await message.edit("```Failed to generate skill```")
37            time.sleep(2)
Starting a process with a shell, possible injection detected, security issue.
25    try:
26        try:
27            if os.name == "nt":
28                os.system(29                    f'venv\\Scripts\\activate && python userbot\\helpers\\skyrim.py "{text}" {level}'30                )31            else:
32                os.system(
33                    f'. venv/bin/activate && python userbot//helpers//skyrim.py "{text}" {level}'
Starting a process with a shell, possible injection detected, security issue.
25
26    await message.edit_text("Carbonizing code...")
27    # Do the thing
28    os.system("carbon-now -h -t userbot/downloads/carbon {}".format(file))29    # await message.edit_text("Carbonizing completed...")
30    # Send the thing
31    await bot.send_photo(message.chat.id, "userbot/downloads/carbon.png")