Jinja
Last updated
Was this helpful?
Last updated
Was this helpful?
The content below is based on OffSec's course.
The example below is based on OffSec's course.
Jinja uses Python which strictly handles variables, unline PHP, Java, and JavaScript, something we can use to identify it (Figure 1).
Jinja is typically used with the Flask framework, and the latter sets six global variables: config
, request
, session
, g
, url_for()
, and get_flashed_messages()
. Therefore, another way to identify this templating engine is by accessing those variables (Figure 2).
The config
global variable may contain application secrets, such as private keys or database passwords, so it is always a worthwhile check (Figure 3).
RCE is covered in WEB-300.
config
global variable's contents