~/talk

Common Python Coding Mistakes

Talkat NDC Security 2022 · 2022-04-06..04-07· [security, python]
links:none on file
slides:none on file

Claims that arbitrary code execution is the most common Python security mistake and demonstrates how using eval on user input allows system commands to run; shows a safe replacement using the ast module to whitelist node types. Reproduces directory traversal and fixes it with realpath/commonprefix checks. Flags outdated libraries like requests <2.20 (HTTPS→HTTP redirect leaks Authorization), shows GitHub CodeQL and Dependabot automation, notes assert disabled with -O and that broken access control rises to OWASP #1 (94% tested). AppDynamics RASP is presented as a runtime mitigation.

AI-written summary · about

  1. 0:00Start
  2. 11:18Arbitrary Code Execution
  3. 21:47Directory Traversal Attack
  4. 30:23Outdated Libraries
  5. 48:14Broken Access Control
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.