Jump to content

[Solved] Hack Attempt when not logged in


Recommended Posts

When an unauthenticated user arrives, or when you log out, Prestashop shows a "Hack Attempt" error on all pages.

Logging in or creating a new account (and thus becoming logged in), makes the error go away and everything works fine.

http://new2010.epicureanfoods.com/us/

I see nothing helpful when uncommenting the debug_backtrace line either. (I've attached it's output in case that helps.)

Any thoughts on what's going on?

debug_backtrace.txt

Link to comment
Share on other sites

Following Chen Bin's lead, I tracked the problem back to Tax.php, line 204:
if (!Validate::isLoadedObject($defaultCountry))

Digging a bit deeper, I found that PS_COUNTRY_DEFAULT was still set to a country ID that had been removed from the database.

Re-saving the "Default Country" setting in Back Office > Shipping > Countries seems to have fixed the problem!

Link to comment
Share on other sites

×
×
  • Create New...