{"id":20493893,"url":"https://github.com/qeeqbox/local-file-inclusion","last_synced_at":"2026-03-19T16:04:51.321Z","repository":{"id":219661974,"uuid":"657456631","full_name":"qeeqbox/local-file-inclusion","owner":"qeeqbox","description":"A threat actor may cause a vulnerable target to include/retrieve local file","archived":false,"fork":false,"pushed_at":"2024-01-29T00:56:17.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T17:51:53.689Z","etag":null,"topics":["file","include","infosecsimplified","local","qeeqbox","vulnerability"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qeeqbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-06-23T05:25:50.000Z","updated_at":"2024-01-29T00:56:24.000Z","dependencies_parsed_at":"2024-01-29T02:29:13.556Z","dependency_job_id":"8ef1ec2a-7d30-4186-a9e0-73fdff6828f0","html_url":"https://github.com/qeeqbox/local-file-inclusion","commit_stats":null,"previous_names":["qeeqbox/local-file-inclusion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qeeqbox/local-file-inclusion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Flocal-file-inclusion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Flocal-file-inclusion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Flocal-file-inclusion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Flocal-file-inclusion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qeeqbox","download_url":"https://codeload.github.com/qeeqbox/local-file-inclusion/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qeeqbox%2Flocal-file-inclusion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30185495,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["file","include","infosecsimplified","local","qeeqbox","vulnerability"],"created_at":"2024-11-15T17:37:20.202Z","updated_at":"2026-03-06T16:32:54.229Z","avatar_url":"https://github.com/qeeqbox.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/qeeqbox/local-file-inclusion/main/local-file-inclusion.png\"\u003e\u003c/p\u003e\n\nA threat actor may cause a vulnerable target to include/retrieve local file\n\n## Example #1\n1. A threat actor sends a malicious request that includes the local file name to a vulnerable target\n2. The vulnerable target includes the malicious local file as PHP and outputs it\n\n## Code\n#### Target-Logic\n```php\n\n#allow_url_include = On\n\n\u003c?php \n    $file = fopen($_GET[\"file\"], 'r');\n    echo fread($file, 1);\n    fclose($file);\n?\u003e\n```\n\n#### Target-In\n```\nhttp://vulnerable.test/index.php?file=config.php\n```\n\n#### Target-Out\n```\ndb_ip:10.0.0.10\ndb_name:r\u0026d.db\ndb_user:root\n```\n\n## Impact\nHigh\n\n## Names\n- Local file inclusion\n- LFI\n\n## Risk\n- Read data\n\n## Redemption\n- Input validation\n- Whitelist\n\n## ID\n2690f163-038a-4bc5-9ff3-3a02ba5f84ee\n\n## References\n- [Wikipedia](https://en.wikipedia.org/wiki/file_inclusion_vulnerability)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Flocal-file-inclusion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeeqbox%2Flocal-file-inclusion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeeqbox%2Flocal-file-inclusion/lists"}