Skip to content

Commit

Permalink
Add attrgetter to DEFAULT unsafe (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpmorgan authored Jan 8, 2024
1 parent b08ea81 commit e09c6c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modelscan/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"socket": "*",
"subprocess": "*",
"sys": "*",
"operator": "attrgetter", # Ex of code execution: operator.attrgetter("system")(__import__("os"))("echo pwned")
},
"HIGH": {
"webbrowser": "*", # Includes webbrowser.open()
Expand Down

0 comments on commit e09c6c3

Please sign in to comment.