KB / Глосарій / Вразливість рядка форматування

Вразливість рядка форматування

Format String Vulnerability
Також: format string bug, printf exploit, %n exploit
pwn UA EN

Format String Vulnerability occurs when a printf-family format string is controlled by the attacker.

printf(user_input);  // vulnerable
printf("%s", user_input);  // safe

Enables: stack reading (%x, %s), memory write (%n), ASLR bypass via address leaks.

Вперше тут?
Новачок на Bastion?
Почни з гайду користувача.
Відкрити гайд →
?