Python's official documentation contains textbook example of insecure code (XSS)

Posted by Georgi Guninski on Feb 20Python's official documentation contains textbook example of insecure code (XSS) Date: 2025-02-18 Author: Georgi Guninski === form = cgi.FieldStorage() if "name" not in form or "addr" not in form: print("Error") print("Please fill in the name and addr fields.") return print("name:", form["name"].value) print("addr:",...

Feb 21, 2025 - 13:30
 0  9
Python's official documentation contains textbook example of insecure code (XSS)

Posted by Georgi Guninski on Feb 20Python's official documentation contains textbook example of insecure code (XSS)

Date: 2025-02-18
Author: Georgi Guninski

===
form = cgi.FieldStorage()
if "name" not in form or "addr" not in form:
print("

Error

")
print("Please fill in the name and addr fields.")
return
print("

name:", form["name"].value)
print("

addr:",...

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow