Log is recording sql error on image url

Discussion in 'Security' started by greatlogix, May 10, 2012.

  1. #1
    First of all, I am not 100% sure about right board for this post. mods, if it's in wrong place, please move where it should be. Thanks.

    I am tracking all failed sql queries on my site in a separate log table. This table holds "Referrer" page url and "current page" url where sql error was detected. something like this.

    Referrer: www.example.com/mypage.htm
    Page: /images/abcde.jpg
    Error: 1064 -- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version.....

    Notice current page url is an image. How is it possible? Is it a super level hacking attempt or anything else?

    Please suggest.
     
    greatlogix, May 10, 2012 IP
  2. PK-Host

    PK-Host Guest

    Messages:
    109
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    0
    #2
    How are you getting the current page? Also do you have any SQL queries within mypage.htm?
     
    PK-Host, May 20, 2012 IP
  3. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #3
    Referer: $_SERVER['HTTP_REFERER']
    Page: $_SERVER['REQUEST_URI']
    yes mypage.php have sql queries.
     
    greatlogix, May 20, 2012 IP