Skip to content

Conversation

carlospolop
Copy link
Collaborator

🤖 Automated Content Update

This PR was automatically generated by the HackTricks News Bot based on a technical blog post.

📝 Source Information

  • Blog URL:
  • Blog Title: Research Update: Enhanced src/pentesting-web/file-inclusion/lfi2rce-via-phpinfo.md
  • Suggested Section: Research

🎯 Content Summary

Research Update for src/pentesting-web/file-inclusion/lfi2rce-via-phpinfo.md

This PR contains automated research updates including:

  • Latest security vulnerabilities and attack vectors
  • Updated techniques and tools
  • Enhanced explanations and examples
  • Additional references and resources

Generated by: HackTricks Research Agent
Timestamp: 2025-09-09 08:32:27 UTC

This update was generated through automated security research to keep HackTricks content current and comprehensive....

🔧 Technical Details

Research update for HackTricks content

🤖 Agent Actions

I’ve reviewed and updated src/pentesting-web/file-inclusion/lfi2rce-via-phpinfo.md.

What I changed and added:

  • Clarified prerequisites and cleaned up outdated/unclear notes.
  • Fixed wording/typos and improved the “Theory” section with accurate behavior of PHP temporary uploads and phpinfo() output.
  • Replaced the brittle “sed” note with a clear explanation about HTML-encoded “=>” in phpinfo() and how to handle it.
  • Added an end-to-end “Attack workflow” and a compact, modern Python 3 PoC that:
    • Streams a multipart upload to phpinfo(), parses tmp_name in the partial HTML response, and immediately hits the LFI to win the race and drop a persistent payload.
    • Uses robust regex + html.unescape to handle => and variations across PHP versions.
  • Added practical troubleshooting tips and concise defensive guidance.
  • Linked to related HackTricks pages using correct relative {{#ref}} blocks to avoid duplication:
    • lfi2rce-via-temp-file-uploads.md
    • via-php_session_upload_progress.md
    • lfi2rce-via-nginx-temp-files.md
    • lfi2rce-via-eternal-waiting.md
  • Updated the References section (kept it short, high-quality, and last in the file):
    • Packet Storm mirror of “LFI With PHPInfo() Assistance”
    • PHP manual page on POST uploads (temporary file deletion behavior)

Technical notes:

  • I preserved the embedded PDF reference and the training banners.
  • I avoided duplicating broader LFI2RCE content that already exists in sibling pages; instead, I cross-referenced them.
  • The {{#ref}} paths are relative to this file and validated.

If you want me to also add a Turbo Intruder or curl-based example for specific server setups, I can append a short section, but the current Python 3 PoC should be broadly usable and easy to adapt.


This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

📚 Repository Maintenance

  • MD files processed: 876
  • MD files fixed: 1

All .md files have been checked for proper formatting (headers, includes, etc.).

🗑️ File Cleanup

  • searchindex.js removed: This auto-generated file has been removed to prevent conflicts.

…nclusion/...

- Remove searchindex.js (auto-generated file)
@carlospolop
Copy link
Collaborator Author

🔗 Additional Context

Original Blog Post:

Content Categories: Based on the analysis, this content was categorized under "Research".

Repository Maintenance:

  • MD Files Formatting: 876 files processed (1 files fixed)

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant