Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Remote get shell #2681

Closed
peiwithhao opened this issue Jan 6, 2025 · 2 comments
Closed

Bug: Remote get shell #2681

peiwithhao opened this issue Jan 6, 2025 · 2 comments
Labels
bug This is a bug!

Comments

@peiwithhao
Copy link

Describe the bug

By importing the os module and obtaining the container shell, the kernel version can be known, resulting in possible escape and privilege escalation.
image

To Reproduce

  1. import os
  2. os.system("/bin/bash")
  3. neofetch
  4. git clone ...
  5. ./exploit

Expected behavior

maybe container escape or priviledge escalation

URL to the issue

https://www.python.org/shell/

Screenshots

"![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"

Browsers

Chrome, Other

Operating System

Linux

Browser Version

No response

Relevant log output

No response

Additional context

No response

@peiwithhao peiwithhao added the bug This is a bug! label Jan 6, 2025
@encukou
Copy link
Member

encukou commented Jan 30, 2025

This is intended behaviour. Python is a tool for arbitrary code execution.

@ewdurbin
Copy link
Member

ewdurbin commented Feb 6, 2025

The interactive shell on the site is powered by https://www.pythonanywhere.com

If you find a security issue with that shell, please report it to them via their bug bounty program

@ewdurbin ewdurbin closed this as completed Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug!
Projects
None yet
Development

No branches or pull requests

3 participants