Skip to content

Instantly share code, notes, and snippets.

@Lytes
Created January 7, 2025 19:24
Show Gist options
  • Select an option

  • Save Lytes/266e5fa6eb4506fe2c7e35166664249a to your computer and use it in GitHub Desktop.

Select an option

Save Lytes/266e5fa6eb4506fe2c7e35166664249a to your computer and use it in GitHub Desktop.
News buzz rce

Highlighted vulnerable code.

image

Authenticated user can select a php file (shell.php in example) when publishing news

image

And by intercepting and editing the content-type header of the request to a valid type (image/jpeg) in example.

image

The php file is uploaded to the /allpostpics/ folder

image

image

Which leads to code execution

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment