Oriel — AI & technology worth noticing, every day.

PHP2Shell Deep Dive

Web page · https://djad04.github.io/php2shell-deep-dive

First seen by Oriel on .

AI summary

PHP2Shell — Deep Dive is a technical walkthrough of PHP vulnerabilities involving session upload progress, out-of-memory bailouts, stale pointers, heap manipulation, information leaks, and eventual code execution.

  • The research explains stack and heap allocation, allocator reuse, and how use-after-free reads or writes can access or corrupt a newly allocated object.
  • It traces the stale pointer to PHP's session.upload_progress handling, which uses Basic Globals and unserialization state while parsing multipart requests before application code runs.
  • PHP workers reuse the same heap across requests, allowing dangling global pointers to persist when cleanup is bypassed during a bailout caused by fatal errors such as memory exhaustion.
  • The walkthrough is intended for readers with basic C and general programming experience, while acknowledging that its analysis is the author's own and may contain inaccuracies.

#php #heap exploitation #use-after-free #session upload progress

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 40, latest observation ; +35 over observed period since
  • Lobsters: 7, latest observation ; +6 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 10, latest observation ; +9 over observed period since
  • Lobsters: 1, latest observation ; 0 over observed period since

Aliases

SourceExternal IDURL
Hacker News50412324https://djad04.github.io/php2shell-deep-dive/ Read discussion
Lobstersd8dgavhttps://djad04.github.io/php2shell-deep-dive/ Read discussion