$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>security - Someone keeps changing my SITEURL (mysql injection or xss?)|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

security - Someone keeps changing my SITEURL (mysql injection or xss?)

matteradmin8PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

I've twice had my site's url changed in the database. This is the only piece of data being altered. Whoever is doing this is then redirecting the site to a script at this location:

somelandingpage [dot] com/3gGykjDJ?frm=script

I've tried preventing XSS and have checked/updated every single plugin and I cannot figure out how this is happening. Any ideas?

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

I've twice had my site's url changed in the database. This is the only piece of data being altered. Whoever is doing this is then redirecting the site to a script at this location:

somelandingpage [dot] com/3gGykjDJ?frm=script

I've tried preventing XSS and have checked/updated every single plugin and I cannot figure out how this is happening. Any ideas?

Share Improve this question edited Mar 2, 2019 at 16:29 fuxia 107k39 gold badges255 silver badges461 bronze badges asked Mar 2, 2019 at 16:07 DaveDave 12 bronze badges 1
  • 1 Probably there is some backdoor left on your site. You have to find it, disable it and secure your site for future. – Krzysiek Dróżdż Commented Mar 2, 2019 at 17:24
Add a comment  | 

2 Answers 2

Reset to default 1

YOu need to deeply look throughout your site for the 'infection'/malware code. This would include the following steps:

  • update everything (WP, themes, plugins)
  • change credentials on everything (hosting, FTP, admin-level users)
  • create a new admin user, log in as it, then delete the user called 'admin' (or demote to 'subscriber')
  • look at all folders for files that shouldn't be there. This is somewhat easier if you sort the file list by date, looking for outliers (since you updated everything, the 'good' files should have the same date/timestamp).

I've put together a procedure I use to clean up a site. It takes a while, but can be done. There are other similar resources available via your favorite search engine.

Here is how to fix this:

  1. Log onto your PHPMyAdmin.
  2. Head to wp_options On line 1 (siteurl) you will notice the 'somelandingpage [dot] com/3gGykjDJ?frm=script' address. Simply edit this line and replace the address with the correct one for your site (Copy the same you see on line 2, generally something like: https://yoursite)
  3. This should get rid of the "redirection" and you should be able to log onto your Wordpress Admin Dashboard, from there make sure to update to the latest Wordpress version and update all your plugins accordingly.

Hope this helps and saves some of you some time :)

Post a comment

comment list (0)

  1. No comments so far