Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-08-2003, 02:31 PM   #1 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
SDE - exploit?

hey man,

umm....yeah, whats the problem and how do i fix it?

thanks man,

Trevor
trevor is offline   Reply With Quote
Old 02-08-2003, 06:21 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
sorry man, that was a post gone way bad =)

i noticed that html is enabled in your forums.. so i was trying to be a smartass and put a meta-redirect and make it redirect to code newbie when someone viewed my post ...

however, .. something stopped part of the html from showing.. i believe it was the quotes in my post.

you should use the html entities function so people can't use any html in your forums. it is a big security risk.

for example:
PHP Code:
<?
$post
="< html >";

$post=htmlentities($post);

echo 
$post;
?>
after $post goes through the htmlentiteis filter, .. it will be this:

&lt; html &gt;

that is so it will display proplerly in the forums, and also it will prevent any html from executing too.

does that make sense?

sorry i messed the forums up .. after posting the first one, it didn't show right away. i'm not sure why there is a gap from when you post to when it shows up... so that is why i posted the second one... i thought i experienced the bug you had problems with before .. posts not showing up for some reason .. but then after i posted the second one.. both of them were there . =/
sde is offline   Reply With Quote
Old 02-08-2003, 06:32 PM   #3 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
my buddy deleted a post (dumbass) so it was missing an ID number, so it wouldn't show.

thanks for finding that, im not sure weather or not to turn html off because I like being able to post images and stuff. at least php is turned off on the posts.

the crowd the site is for wouldn't do anything bad.

well see how it turns out.

thanks again,

Trevor
trevor is offline   Reply With Quote
Old 02-09-2003, 07:13 AM   #4 (permalink)
anon
Guest
 
Posts: n/a
for images you could do something like

[ img ] blah.com/asd.jpg [ /img ]

and PHP can interpret it and put it as < img src tag.
  Reply With Quote
Old 02-09-2003, 07:36 AM   #5 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
php doesn't automatically replace that . you have to write scripts to search out a pattern of an open img tag and closed image tag.. then it has to pull the info in the middle of them into a variable, and create a regular html tag with that.
sde is offline   Reply With Quote
Old 02-09-2003, 07:54 AM   #6 (permalink)
anon
Guest
 
Posts: n/a
Quote:
Originally posted by sde
php doesn't automatically replace that . you have to write scripts to search out a pattern of an open img tag and closed image tag.. then it has to pull the info in the middle of them into a variable, and create a regular html tag with that.
I know I meant you could just write some PHP code to do that for you.....
  Reply With Quote
Old 02-09-2003, 05:48 PM   #7 (permalink)
trevor
Code Monkey
 
Join Date: Jan 2003
Location: Canada
Posts: 91
trevor is on a distinguished road
yeah.....thats a lot of extra code when so much has to be written first.
trevor is offline   Reply With Quote
Old 02-10-2003, 07:05 AM   #8 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
um, i suggested that you turn off HTML like 2 weeks ago...

its good that mike posted and not me, har har.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 02-10-2003, 08:57 AM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
pffffftt
sde is offline   Reply With Quote
Old 02-10-2003, 09:55 AM   #10 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
/me kicks mike in the shin
__________________


Urban Clothing
Admin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OMG sde mate!!! Valmont Lounge 3 04-19-2004 05:42 AM
Group posts code to exploit Windows flaw, attack computers redhead Code Newbie News 3 07-28-2003 07:41 AM
sde Admin Lounge 2 07-14-2003 02:09 PM
sde anon Lounge 3 12-14-2002 02:36 PM
sde - the administrator formorly known as mmilano sde Lounge 5 12-12-2002 12:39 AM


All times are GMT -8. The time now is 04:07 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting