> For the complete documentation index, see [llms.txt](https://blog.egonzalez.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.egonzalez.org/hacking/index/python-vulnerabilities.md).

# Python Vulnerabilities

This section will explain what vulnerabilities are common in python developments, how to exploit and fix them.

{% content-ref url="/pages/-M4AMrh3vVZP-XUMnwLa" %}
[Data Deserialization](/hacking/index/python-vulnerabilities/data-deserialization.md)
{% endcontent-ref %}

## Vulnerable server

For the purpose of learning all this vulnerabilities I've create a vulnerable server that will allow practice and execution of the provided examples, but is better if try to break by yourself googling for information about the technologies or the bugs.

To run the service on port <http://localhost:5000>

```
docker run --name vuln_server \
           --rm -ti -p 80:5000 \
           egonzalez90/vuln_python_server:latest
```

Once in the main page, browse through the menu and try to get the flag at `/root/flag` exploiting the different techniques.

Other command and files can also be executed, just be careful if mount other volumes in the container.

Server source code: <https://github.com/xNaaro/vulnerable_python>

Happy hacking and fixing vulnerabilities ;)
