سپید

My thoughts

My blog got compromised!

Apparently, about two months ago, my blog got hacked (without me noticing) and infected with malicious code injected into the functions.php file of the twentytwentyfive theme. A block of base64-encoded PHP was being re-saved to my blog every time it got deleted, and through that code, the attackers managed to install malicious plugins and create two admin users :(

Luckily, since my blog runs in a Docker container, they couldn’t reach the OS level. But those plugins and admin users have been sitting there for over two months. I’ve since moved to a completely new server and tightened things up—disabling certain PHP functions (exec, shell_exec, etc.), restricting curl_exec at the network layer to only allow *.wordpress.org, and disabling file_get_contents via php.ini.

Still, this really shows how vulnerable WordPress is!

2 پاسخ به “My blog got compromised!”

  1. سعید نیم‌رخ
    سعید

    افزونه های امنیتی مثل wordfence یا solid themes را نصب داشتی؟
    البته وردپرس شبیه آبکش هست 😶

    1. سپید نیم‌رخ

      نه نداشتم. پوسته که همون دیفلالت وردپرسه. فقط یوست رو نصب کردم برای سئو و متاتگ ها.

      آره، جدیدا خیلی باگ severe پیدا میشه و هر چند وقت یکبار میگه سریع آپدیت کنین :)

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

سپید

My thoughts

CC BY-NC | 2026

طراحی شده با WordPress