Improper Control of Generation of Code ('Code Injection') Affecting pwntools package, versions [,4.3.1)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.Test your applications
- Snyk ID SNYK-PYTHON-PWNTOOLS-1047345
- published 1 Dec 2020
- disclosed 30 Nov 2020
- credit Arusekk
How to fix?
pwntools to version 4.3.1 or higher.
pwntools is a CTF framework and exploit development library. Written in Python, it is designed for rapid prototyping and development, and intended to make exploit writing as simple as possible.
Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection'). The shellcraft generator for affected versions of this module are vulnerable to Server-Side Template Injection (SSTI), which can lead to remote code execution.