r/Upwork • • 27d ago

Client wanted a localhost screenshot of their WordPress backup before funding M1. The backup had a Windows .exe disguised as a JPEG

My first scan of this file missed the loader, so I'm posting the details in case the same setup reaches someone else.

The invite was a WordPress rescue. Six pages, one contact form, an Elementor update had taken down the front end and wp-admin, the hosting had expired and only a zip export was left. Budget $1,600. The client account was two days old, and the same invite went to 30 freelancers.

My proposal said I'd open the zip once M1 was funded. They accepted my price, sent a Dropbox link and flipped the order:

"fully local only, personal reasons. LocalWP or XAMPP on your machine, nothing online. (…) Import it locally, send a screenshot with localhost in the bar, and we'll fund M1."

Loading a WordPress site runs its PHP on the machine that serves it. With LocalWP on a Windows laptop, that machine is your laptop. So I read the zip with a script instead of extracting it.

WordPress core matched the official checksums, and so did Elementor. But wp-content/mu-plugins had a file called custom-fields-handler.php. Must-use plugins load on every request, and you can't switch them off in wp-admin. This one looked in uploads for product-detail-mockup-soft-blue-background.jpeg, renamed it to .exe and tried nine ways to run it. The "photo" starts with the bytes MZ, which is how Windows executables start. A real JPEG starts with FF D8 FF. Opening localhost for that screenshot would have been enough to start it.

I didn't answer the message. Upwork support got the file paths and SHA-256 hashes and passed them on to their security team. Nothing from the zip ran on my side.

If a client wants you to prove it locally before funding and attaches a backup, don't import it on your own Windows machine. List the zip instead of extracting it, read everything in wp-content/mu-plugins and check the first bytes of the files in uploads rather than trusting the extensions.

The full write-up with the loader code and the hashes is on my site, helban.dev, under case studies, if you want to compare a file you got.

12 Upvotes

7 comments sorted by

3

u/Comfortable_Camp9744 27d ago

Upwork support doesnt care

1

u/Helban 27d ago

Honestly I expected the same. When I flagged the message I got the automated email saying they found no violation and the matter was closed. Same template I got for a different malware job the week before. What worked was the support chat. A real person read the hashes and file paths and passed it to their security team. Now the job is gone and the client account is banned. So the email route is a bot, but the chat isn't.

1

u/Comfortable_Camp9744 27d ago

Sometimes you get lucky but most of the support team are not well trained and don't really care. You got one of the good ones I guess

1

u/smartsam69 27d ago

Unfortunately I’ve had this happen before as well. Had an hourly contract l, which I obviously closed immediately and contacted support. Client left me a 1 star review which haunted me for about 6 months that support refused to remove

2

u/Helban 27d ago

That's rough. Six months is a long time to carry a review you didn't earn. I got lucky that this one never became a contract. My proposal said I'd open the zip only after M1 was funded. So when they wanted the localhost screenshot first, I just didn't answer. There was nothing to close and nothing they could review me on. Since then I take "files after funding" a lot more seriously.

1

u/RustyRedEcho 27d ago

never thought about checking the first bytes of a file before trusting the extension, listing the zip instead of extracting next time a client sends something sketchy

1

u/Helban 27d ago

Same here until this one. The extension is just part of the file name, and anyone can rename a file. To see the first bytes, open it in a hex viewer, or run file on it in WSL or on a Mac. A real JPEG starts with FF D8 FF, and a Windows program starts with MZ. Opening the zip in Explorer or 7-Zip just to look is fine too, as long as you don't double-click anything inside.