Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. website hacking :-(

website hacking :-(

Scheduled Pinned Locked Moved Web Development
phpdatabasesysadminsecurityhelp
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    macmac38
    wrote on last edited by
    #1

    Hello, i programmed a php based website for our company. Yesterday i was shocked to see that some polish hackers changed my index.php, but nothing else was touched. On their side they posted an article about this hack where they re talking about a php bug?? I took all php files from the server because i don't know wheres the security leak. here is the code of index.php: ![](im/spacer.gif) ";?>![](im/3dswlogo.gif) "; ?> deutsch / [english](\"$PHP_SELF?id=home.php&lang=en\") ";?> ![](im/phone.gif)  $home";?> | $kontakt";?> | $impressum";?>  ![](im/spacer.gif) "; echo" "; echo" "; echo" "; echo"

    A B 2 Replies Last reply
    0
    • M macmac38

      Hello, i programmed a php based website for our company. Yesterday i was shocked to see that some polish hackers changed my index.php, but nothing else was touched. On their side they posted an article about this hack where they re talking about a php bug?? I took all php files from the server because i don't know wheres the security leak. here is the code of index.php: ![](im/spacer.gif) ";?>![](im/3dswlogo.gif) "; ?> deutsch / [english](\"$PHP_SELF?id=home.php&lang=en\") ";?> ![](im/phone.gif)  $home";?> | $kontakt";?> | $impressum";?>  ![](im/spacer.gif) "; echo" "; echo" "; echo" "; echo"

      A Offline
      A Offline
      alex barylski
      wrote on last edited by
      #2

      Format your code and use PRE tags. Then i'll take a look :) How do I print my voice mail?

      L 1 Reply Last reply
      0
      • A alex barylski

        Format your code and use PRE tags. Then i'll take a look :) How do I print my voice mail?

        L Offline
        L Offline
        l a u r e n
        wrote on last edited by
        #3

        :laugh: just what i was thinking


        "there is no spoon"
        biz stuff   about me

        A 1 Reply Last reply
        0
        • L l a u r e n

          :laugh: just what i was thinking


          "there is no spoon"
          biz stuff   about me

          A Offline
          A Offline
          alex barylski
          wrote on last edited by
          #4

          Under most circumstances I would just ignore any post like that, but i'm curious to see if I can find the hole, so I kind of hope macmac38 updates the message. How do I print my voice mail?

          1 Reply Last reply
          0
          • M macmac38

            Hello, i programmed a php based website for our company. Yesterday i was shocked to see that some polish hackers changed my index.php, but nothing else was touched. On their side they posted an article about this hack where they re talking about a php bug?? I took all php files from the server because i don't know wheres the security leak. here is the code of index.php: ![](im/spacer.gif) ";?>![](im/3dswlogo.gif) "; ?> deutsch / [english](\"$PHP_SELF?id=home.php&lang=en\") ";?> ![](im/phone.gif)  $home";?> | $kontakt";?> | $impressum";?>  ![](im/spacer.gif) "; echo" "; echo" "; echo" "; echo"

            B Offline
            B Offline
            Bob Stanneveld
            wrote on last edited by
            #5

            This has nothing to do with the security leak, but why don't you use HTML templates? Those make the script more readable, easier to read and look more professional...

            A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

            M 1 Reply Last reply
            0
            • B Bob Stanneveld

              This has nothing to do with the security leak, but why don't you use HTML templates? Those make the script more readable, easier to read and look more professional...

              A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

              M Offline
              M Offline
              macmac38
              wrote on last edited by
              #6

              Hello all, in the meantime i know where the leak is.if($id == FALSE){ include "home.php"; } else { include "$id"; }
              this let you include any folder you like... you see i also can format my posting ;-) by the way do you know any good tutorials for php and html template working? I looked a some but this looks all like much script work in the background.. Thanks, Mark

              B 1 Reply Last reply
              0
              • M macmac38

                Hello all, in the meantime i know where the leak is.if($id == FALSE){ include "home.php"; } else { include "$id"; }
                this let you include any folder you like... you see i also can format my posting ;-) by the way do you know any good tutorials for php and html template working? I looked a some but this looks all like much script work in the background.. Thanks, Mark

                B Offline
                B Offline
                Bob Stanneveld
                wrote on last edited by
                #7

                Hello, I've read a book on secure PHP development. The title: Secure PHP Development by Mohammed J. Kabir The website: www.wiley.com/compbooks/[^]

                A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups