문제

My Magento 1.9.3.3 installation had malicious redirects injected into the header. I could easily erase the redirects from System/Configuration/Design/HTML Header/Other Header Content field.

However I would like to know how to prevent it from happening again.

I am not well-versed when it comes to locking down Magento, but I took the following steps:

  1. Via SSH I ran
    • find . -type f -exec chmod 644 {} \;
    • find . -type d -exec chmod 755 {} \;
    • chmod 550 mage to make sure permissions were set correctly.
  2. I changed the admin password.

I did find that the admins user group had 20+ accounts I had never created. I erased those.

Are there additional steps I should/could take at this point?

도움이 되었습니까?

해결책

Not sure if it's same problem as descriebed here:

I don't know how they got access, so first things (as posted in related questions) could be

  • changing DB password (and all others too)
  • maybe change admin path
  • apply all patches (just to mention ... you're already up2date)
  • check admin accounts (as you did)
  • check server for malicious scripts

Wait for possible fix ... :(

다른 팁

I'm not sure how these attacks are happening but you could change the frontName in local.xml

<admin>
 <routers>
  <adminhtml>
    <args>
      <frontName><![CDATA[something_not_easily_guessed]]></frontName>
    </args>
  </adminhtml>
 </routers>
</admin>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top