Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    help question page_not_found now instead of seeing nefarious urls hackers are trying to manipulate

    157c

    It looks like we are seeing page_not_found now on who's online when a hacker tries to exploit our system? I guess this is good because the search engines are going here too.... but there is some value in knowing what the hackers are looking at....

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: page_not_found now instead of seeing nefarious urls hackers are trying to manipul

    Moderator note: Relocated this post by moving it out of the Bug Reports area.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: page_not_found now instead of seeing nefarious urls hackers are trying to manipul

    I don't recall anything changing in this regard in any of the v1.5.x releases.


    When your site jumps to main_page=page_not_found it is a result of the combination of two factors:

    a. your configuration setting for Admin->Configuration->My Store->Missing Page Check

    b. any .htaccess rules you've configured to redirect invalid incoming requests (for files that don't exist on your site and for which no rewrite/redirect rule has been established), such as via the example redirect rule found in the /extras/htaccess_for_page_not_found_redirects.htaccess file


    Your webserver's apache access_log and error_log can give you insights into the actual URLs it receives requests for, including the ones it actively rejects.

    It is indeed best that the webserver reject the attempt before it ever hits PHP, since that both blocks any bad side-effects and also stops your store from having to waste CPU cycles processing fake requests and running database queries thus slowing down shopping for legitimate users. Of course the side-effect of this is that PHP will never know about those hits and therefore is entirely unable to display any such activity to your PHP application in real-time. That's why the logs exist. It's also why 3rd party services for log-analysis exist.
    Last edited by DrByte; 6 Apr 2021 at 05:33 PM. Reason: fix typo
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: page_not_found now instead of seeing nefarious urls hackers are trying to manipul

    Quote Originally Posted by DrByte View Post
    When your site jumps to main_page=page_not_found it is a result of the combination of two factors:

    a. your configuration setting for Admin->Configuration->Missing Page Check

    b. any .htaccess rules you've configured to redirect invalid incoming requests (for files that don't exist on your site and for which no rewrite/redirect rule has been established), such as via the example redirect rule found in the /extras/htaccess_for_page_not_found_redirects.htaccess file


    Your webserver's apache access_log and error_log can give you insights into the actual URLs it receives requests for, including the ones it actively rejects.

    It is indeed best that the webserver reject the attempt before it ever hits PHP, since that both blocks any bad side-effects and also stops your store from having to waste CPU cycles processing fake requests and running database queries thus slowing down shopping for legitimate users. Of course the side-effect of this is that PHP will never know about those hits and therefore is entirely unable to display any such activity to your PHP application in real-time. That's why the logs exist. It's also why 3rd party services for log-analysis exist.
    Thank you!

    Is this a mod? a. your configuration setting for Admin->Configuration->Missing Page Check I don't see it.

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: page_not_found now instead of seeing nefarious urls hackers are trying to manipul

    Quote Originally Posted by shrimp-gumbo-mmmhhh View Post
    Thank you!

    Is this a mod? a. your configuration setting for Admin->Configuration->Missing Page Check I don't see it.
    No it is not a mod. You can find it in Admin->Configuration->My Store->Missing Page Check (at around 3/4 of the page).

  6. #6
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: page_not_found now instead of seeing nefarious urls hackers are trying to manipul

    Also can start using the developer's tool kit to search for some things such as the configuration settings (second row down in the tool kit) using the word "missing", the portion that was missing in the description of where to go was "My Store" (as identified by Design75) so that the path should have been: admin -> configuration -> My Store -> Missing Page Check
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Hey, I am trying to manipulate the presentation of images on....
    By entity in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Jan 2012, 09:52 PM
  2. Upgraded to 1.3.8 now my URLS are different
    By tawnos in forum Basic Configuration
    Replies: 1
    Last Post: 28 Apr 2010, 08:06 PM
  3. Instead of it saying Add to Cart can there be a buy now button instead?
    By tanyaleann in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Oct 2008, 07:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR