Leaking sensitive data via template injection
This is a REAL, executable Python program (attached xabar_xizmati.py). Python has its own issue similar to the "format string" vulnerability in C: if the user is allowed to write the template itself (via str.format()), they can write an ATTRIBUTE PATH (for example, obyekt.__class__.nom) inside {...} and "reach into" arbitrary objects within the program.
The developer has banned popular "sandbox escape" words (__class__, __subclasses__, import, etc.). But read the file carefully — the BANNED list DOES NOT COVER the real error. Your task: find a single template string for the xabar_yasa() function that is not banned, but leaks the module's _MAXFIY_ENC list (the encrypted flag).
The found (leaked) list is encrypted with the XOR key _XOR_KALIT — if you XOR each element with _XOR_KALIT, the characters (ASCII codes) of the flag text will emerge.
Find the required template by running the program locally (or simply by carefully analyzing the source code).