Django Pentesting
Django is a web framework in Python.
SSTI (Server-Side Template Injection)
Bypass ALLOWED_HOSTS
If we get the error “Invalid HTTP_HOST header: 'x.x.x.x:8000'. You may need to add 'x.x.x.x' to ALLOWED_HOSTS" when accessing the website written in Django, you need to intercept the value of the Host in the HTTP request header.
Then you should be able to access the website.
Or if we can have the permission to edit the configuration of the website, add new IP address to ALLOWED_HOSTS in settings.py
.