Questions tagged [local-file-inclusion]

Local File Inclusion (also known as LFI) allows an attacker to include files in server-side through the web browser. LFI is commonly found to affect web applications that rely on a scripting runtime. This occurs mainly due to a bad input validation mechanism, wherein the user’s input is passed to the file include commands without proper validation.

Filter by
Sorted by
Tagged with
3
votes
1answer
563 views

How can I read local files from blind XSS?

When I do one of these payloads, I can see /etc/passwd: <iframe src=file:///etc/passwd></iframe> <img src="xasdasdasd" onerror="document.write('<iframe src=file:///etc/...
0
votes
1answer
141 views

Log poisoning prevention in the context of LFI

Back in the day, mostly, such injections were taking place over the server log files. Such files are the Apache error log, the Access log and more. Techniques like these have been used for years and, ...
2
votes
2answers
1k views

LFI filter bypass

$patterns[0] = '/[^[:print:]]+/'; // remove non-printable characters $patterns[1] = '/[ \t]+$/'; // remove whitespace at end of string $patterns[2] = '/^[ \t]+/'; // remove whitespace at ...
0
votes
1answer
87 views

Path traversal limited

I trying to pentest website. I know that there are files named "file1" and "file2". The server is nginx. So I did this test: http://example.com/file1..%2ffile2 => 404 http://...
0
votes
1answer
93 views

DVWA - Converting Local File Inclusion to Remote Code Exploitation

I'm reading this blog and it says: If the /proc/self/environ file can be accessed through LFI, then in this case “RCE” can be achieved by requesting the file in combination with the payload written ...