Click here to Skip to main content
15,922,894 members
Home / Discussions / Web Development
   

Web Development

 
GeneralFirewalls Pin
Mr Bose Dayala24-May-04 19:28
Mr Bose Dayala24-May-04 19:28 
GeneralForward slashes as VBScript comment Pin
Phil Meades24-May-04 10:16
Phil Meades24-May-04 10:16 
GeneralRe: Forward slashes as VBScript comment Pin
Om Prakash Pant2-Jun-04 1:13
Om Prakash Pant2-Jun-04 1:13 
GeneralRe: Forward slashes as VBScript comment Pin
Phil Meades2-Jun-04 10:33
Phil Meades2-Jun-04 10:33 
GeneralJavascript form validation Pin
alex.barylski23-May-04 13:50
alex.barylski23-May-04 13:50 
GeneralRe: Javascript form validation Pin
Bjoern Graf23-May-04 14:07
Bjoern Graf23-May-04 14:07 
GeneralRe: Javascript form validation Pin
alex.barylski23-May-04 14:19
alex.barylski23-May-04 14:19 
Generalwebsite hacking :-( Pin
macmac3821-May-04 11:31
macmac3821-May-04 11:31 
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:

<br />
<br />
<?php<br />
<br />
include "header.inc.php";<br />
<br />
global $PHP_SELF;<br />
<br />
?><br />
<!--- main content ---><br />
<br />
<br />
<br />
<br />
<tr><td align=left><br />
<table width=800 cellspacing="0" cellpadding="0" border="1"><br />
<tr><br />
<td colspan="2" height="5"><img src="im/spacer.gif" height="5" width="1"></td><br />
</tr><br />
<tr><br />
<td colspan="2" height="40"><br />
<table width=800 height=100% cellspacing="0" cellpadding="0" border="0"><br />
<tr><br />
<td align="left"><?php echo"<a href=\"$PHP_SELF?lang=$lang&id=home.php\">";?><img src="im/3dswlogo.gif" border=0></a></td><br />
<td align="right"><?php echo "<img src=\"im/$description\">"; ?></td><br />
</tr><br />
</table><br />
</td></tr><br />
<tr><br />
<td colspan="2" height="40"><?php echo "<a class=linkgrey href=\"$PHP_SELF?id=home.php&lang=de\">deutsch</a><span class=linkgrey> / </span><a class=linkgrey href=\"$PHP_SELF?id=home.php&lang=en\">english</a> ";?></td><br />
</tr><br />
</table><br />
</td></tr><br />
<br />
<br />
<tr><br />
<td height="1" background="im/dot.gif"></td><br />
</tr><br />
<br />
<br />
<tr><td align=left><br />
<table width=800 cellspacing="0" cellpadding="0" border="1"><br />
<tr><br />
<td align=left height="20"><img src="im/phone.gif"</td><br />
<td align="right" height="20"><?php echo"<a class=navi href=\"$PHP_SELF?lang=$lang&id=home.php\">$home";?></a> |  <?php echo"<a class=navi href=\"$PHP_SELF?lang=$lang&id=kontakt.php\">$kontakt";?></a>  |  <?php echo"<a class=navi href=\"$PHP_SELF?lang=$lang&id=impressum.php\">$impressum";?></a> </td><br />
</tr><br />
</table><br />
</td></tr><br />
<br />
<br />
<tr><br />
<td height="1" background="im/dot.gif"></td><br />
</tr><br />
<br />
<br />
<tr><td align=left><br />
<table width=800 cellspacing="0" cellpadding="0" border="0"><br />
<tr><br />
<td colspan="2" height="40"><img src="im/spacer.gif" height="40" width="1"></td><br />
</tr><br />
<br />
<br />
  <br />
   <br />
        <br />
<br />
<tr valign=top><br />
<br />
<td><br />
<br />
  <table width=179 cellspacing="0" cellpadding="0" border="0" align=top"><br />
     <tr><td align=right><br />
	<?php<br />
 echo" <map name=\"navi\">";<br />
 echo" <area shape=\"RECT\" coords=\"71,257,71,257\">";<br />
 echo" <area shape=\"RECT\" coords=\"147,30,147,30\">";<br />
 echo" <area href=\"$PHP_SELF?lang=$lang&id=dienstleistungen.php\" coords=\"-5,6,151,78\">";<br />
 echo" <area href=\"$PHP_SELF?lang=$lang&id=produkte.php\" coords=\"-5,98,151,182\">";<br />
 echo" <area href=\"$PHP_SELF?lang=$lang&id=gallery.php\" coords=\"3,197,151,269\">";<br />
 echo" <area href=\"$PHP_SELF?lang=$lang&id=news.php\" coords=\"-5,281,151,313\">";<br />
 echo" <area href=\"$PHP_SELF?lang=$lang&id=jobs.php\" coords=\"-29,325,151,361\">";<br />
 echo" </map>";<br />
<br />
?><br />
<br />
<br />
<?php echo "<img src=\"im/$navi\" width=\"179\" height=\"373\" border=\"0\" usemap=\"#navi\">"; ?> <br />
	 <br />
	 <br />
	 <br />
<br />
   </td></tr><br />
  <br />
<br />
   <br />
   </table><br />
<br />
<br />
</td><br />
<td align=left><br />
<br />
<?php<br />
<br />
if($id == FALSE){<br />
<br />
include "home.php";<br />
<br />
}<br />
else<br />
{<br />
<br />
include "$id";<br />
<br />
}<br />
<br />
?><br />
<br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
<br />
<br />
<?php<br />
<br />
include "footer.inc.php";<br />
<br />
?><br />


any ideas??

Thanks, Mark
GeneralRe: website hacking :-( Pin
alex.barylski23-May-04 13:04
alex.barylski23-May-04 13:04 
GeneralRe: website hacking :-( Pin
l a u r e n23-May-04 13:29
l a u r e n23-May-04 13:29 
GeneralRe: website hacking :-( Pin
alex.barylski23-May-04 13:43
alex.barylski23-May-04 13:43 
GeneralRe: website hacking :-( Pin
Bob Stanneveld23-May-04 19:44
Bob Stanneveld23-May-04 19:44 
GeneralRe: website hacking :-( Pin
macmac3824-May-04 8:07
macmac3824-May-04 8:07 
GeneralRe: website hacking :-( Pin
Bob Stanneveld24-May-04 8:12
Bob Stanneveld24-May-04 8:12 
Generalwindow.showmodal Pin
rbarzallo21-May-04 8:58
rbarzallo21-May-04 8:58 
GeneralRe: window.showmodal Pin
Michael Flanakin24-May-04 11:36
Michael Flanakin24-May-04 11:36 
GeneralRDS error in Windows 2003 Pin
Anonymous21-May-04 6:37
Anonymous21-May-04 6:37 
Generalrecord inserting twice in database Pin
bcoulter21-May-04 2:45
bcoulter21-May-04 2:45 
GeneralActually http:// submitting twice Pin
bcoulter21-May-04 3:26
bcoulter21-May-04 3:26 
GeneralRe: Actually http:// submitting twice Pin
Om Prakash Pant31-May-04 22:12
Om Prakash Pant31-May-04 22:12 
GeneralUse Cases Pin
deeps2620-May-04 18:58
deeps2620-May-04 18:58 
GeneralRe: Use Cases Pin
Michael Flanakin24-May-04 11:57
Michael Flanakin24-May-04 11:57 
GeneralRe: Use Cases Pin
deeps2626-May-04 21:03
deeps2626-May-04 21:03 
Generaljavascript error... Pin
l a u r e n20-May-04 10:59
l a u r e n20-May-04 10:59 
GeneralRe: javascript error... Pin
Andrew Quinn AUS20-May-04 11:27
Andrew Quinn AUS20-May-04 11:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.