Hi! Thanks for stopping by, and please feel free to look around.
Please register to leave comments – polite feedback is always appreciated.
Log In or Register to post a comment.
RSS Link: https://justinparrtech.com/JustinParr-Tech/feed
[11/26/2026]
Well, I finally got control of my site back. Learned a few things. Have some new things on my to-do list.
<TL;DR>
On or about 11/20, someone locked me out of my own site. Keep in mind that this site is shared hosting by DreamHost (Shout out to DreamHost by the way… I’ve been with them since around 2012 and they have been great), so it’s not like I have a blog account or something like that. I have my own database, my own site, and my own wordpress instance. I was able to log in, but had no capabilities – I couldn’t even post a comment.
I used DreamHost’s file manager to temporarily take my site offline, and left a nasty, snarky default page in its place. I’ll make a more family-friendly maintenance page later, for future use in case I need it again.
Normally, I would just google how to restore permissions, go poke some stuff in to the database, and be back up and running. That’s how most applications work – either the attacker removed my roles or mangled my user ID (in fact, they had done both). However, at this exact time, DreamHost had to take PHPMyAdmin offline – this is the web-GUI tool used to administer the databases. Fortunately, my test box also has PHPMyAdmin, and after some goofing around, I was finally able to get back in to the online database. Yay!
Next step, figure out what the attacker did, and perhaps see if I can identify them.
I’m guessing that they ran a script on user_id=1, which is the default user created when installing wordpress. The problem is that with wordpress, everything is way overcomplicated and poorly documented, but I eventually found a couple of blog posts explaining how to restore admin role to a user. I was able to do this through some database pokes, but like everything else with wordpress, the value in question has embedded quotes, so I had to go figure out the proper MySQL syntax. So NOT so straightforward, but not a dead end.
After updating my permissions in the database and removing what looked like spurious entries designed to lock that user out of parts of the GUI, I restored my site using DreamHost’s file manager, and was finally able to log in with admin role.
I always set up a backup admin user for situations just like this, and while I was in the database, I stumbled across them. So if I had just logged in as my backup admin user, I’d have been back up and running very quickly. I had simply forgotten about the backup admin user. *facepalm.
Upon reflection, I have decided to find an alternative to wordpress, as it just continues to get crappier every year. WordPress is overly-complicated, and they obviously don’t take security seriously. For example, user registration spam is a known issue, and wordpress’s response is to use a plugin. In fact most of the decent plugins are paid-only unless you use the very basic features. So even if I use a user registration plugin, I have to pay for it to get the features that I really need. This situation has always been so bad that I even wrote my own plugin, long ago, but stopped maintaining it (also) long ago. Further, when you contact wordpress for support, their response is always snarky. Change a function and break a plugin. Then they say things like “well, you shouldn’t be doing it that way” and “if you would have read this article, you would know x y and z”. Just complete garbage support. Of course, unless you use the PAID version. And, ZERO support for inline javascript. Although I’m sure there is a paid plugin for that.
As I further contemplate what platform to use and begin to migrate my content, I will keep you all advised. I plan to set up some kind of script to ensure that permalinks still work properly.
</TL;DR>
Some fun things to occupy your time:
- Play Conway’s Game of Life: https://justinparrtech.com/JustinParr-Tech/conways-game-of-life-implemented-in-javascript/
- Make an Eye Chart: https://justinparrtech.com/JustinParr-Tech/eye-chart-font-sizes/
- Map the topology of a bitmap: https://justinparrtech.com/JustinParr-Tech/ca-based-topology-mapper/
- Solve any maze: https://justinparrtech.com/JustinParr-Tech/mazebot-2-0-online/
- Generate a maze: https://justinparrtech.com/JustinParr-Tech/mazegen-v1-0-is-now-online/








