pythondotorg icon indicating copy to clipboard operation
pythondotorg copied to clipboard

Can go into the bash and make dirs into the server

Open heliebiandexbilibili opened this issue 1 year ago • 0 comments

Describe the bug You can use this bug to go into the file management system and make dirs

To Reproduce(Make dirs) Steps to reproduce the behavior:

  1. Go to python.org/shells
  2. Input "import os", Enter
  3. Input "os.system("mkdir hello")" or "os.mkdirs("hello")", Enter
  4. Input "os.system("ls")", Enter
  5. See the error

To Reproduce(Go into the file management system)

  1. Go to python.org/shells
  2. Input "import os", Enter
  3. Input "os.system("bash")" or "os.system("sh")"
  4. See the error

Expected behavior Prohibit the "os" lib or anything else

Screenshots 屏幕截图 2024-03-20 134950 image

Desktop

  • Browser [Edge]

For addition The file that make cannot disapear when I refresh the website.

heliebiandexbilibili avatar Mar 20 '24 09:03 heliebiandexbilibili