Site Reviews
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsWeb DesignSite Reviews

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 25th, 2008, 09:47 PM
shmerty shmerty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 93 shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 36 m 56 sec
Reputation Power: 6
Http://www.liamsmart.co.uk

Hi everyone,

I have finally finished my new website.

I got a lot of help from the people on this forum with doing the font-size changing thing, breadcrumbs, using arrays for the first time and much more. So I just want to say thanks!

Website should work fine without Javascript as I made sure I used ASP to do the font-size thing and breadcrumbs even though it took me a lot longer than it would have if I just used Javascript, but its definitely worth it.

Feedback would also be nice (i know it wont be everyones cuppa tea)

Heres the link: www.liamsmart.co.uk

I got server timeout error once or twice but think I sorted the problem. If anyone else gets that let me know as it will be worth posting my ASP file to see what Ive done the long hard way as I know the function to turn the first letter of the breadcrumbs into Capital is done a longer than necessary way (i tried a short way but couldnt get it figured out).
__________________
Many thanks,
Liam
www.liamsmart.co.uk

Reply With Quote
  #2  
Old October 26th, 2008, 03:00 AM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 15th Plane (12000 - 12499 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 12,025 Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 12 h 15 m 14 sec
Reputation Power: 628
1) Admin login page is vulnerable to SQL Injection.

2) Blog is vulnerable to a stored XSS attack.

Reply With Quote
  #3  
Old October 26th, 2008, 11:14 AM
shmerty shmerty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 93 shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 36 m 56 sec
Reputation Power: 6
Hi Memmoch,

Thanks for your reply!

I went onto 4guysfromrolla and followed their article on protecting against injection. The say to use replace(myStr,"'", "''") and use CLng when passing querystrings as anything other than a number will cause an error.

Problem is now though, if a text based querystring is used, the page returns an error. Can i use IsNumeric instead? and then do a quick IF ELSE statement?

Having read a good few articles on SQL injection since reading your reply, I noticed that a lot is written about if a non valid querystring is entered, an error is displayed stating the table name the query is calling. But because Im calling an array value, the table name is never displayed incase of an error. Instead its just the usual array associated errors.

I also looked up how to stop XSS attacks and added in validation to stop scripts being added into the DB. I read how to do this on the website below:

http://www.4guysfromrolla.com/webtech/061902-1.shtml
http://www.nextmill.net/knowledge.php?articleid=64

Am I doing this right? And is this enough?

I appreciate your help.

Reply With Quote
  #4  
Old October 29th, 2008, 10:37 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,836 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 13 h 54 m 20 sec
Reputation Power: 2389
very nice website, congrats for the valid XHTML and CSS.

two comments though:
  1. the blog ticker act weird, at least in Firefox. on initial page load, it goes
    to the left. sometimes it stop there, sometimes it goes to the right. sometimes
    it just stuck in the middle.
  2. in the Contact Me page the captions (Name, Email Address etc) are too
    bright, it's hard to read them, unless you hover then the color is good.

Reply With Quote
  #5  
Old October 29th, 2008, 10:52 AM
shmerty shmerty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 93 shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 36 m 56 sec
Reputation Power: 6
Quote:
Originally Posted by Shadow Wizard
very nice website, congrats for the valid XHTML and CSS.

two comments though:
  1. the blog ticker act weird, at least in Firefox. on initial page load, it goes
    to the left. sometimes it stop there, sometimes it goes to the right. sometimes
    it just stuck in the middle.
  2. in the Contact Me page the captions (Name, Email Address etc) are too
    bright, it's hard to read them, unless you hover then the color is good.


Thanks for checking it out shadow!

I haven't seen any problems with the ticker and no-one else has mentioned anything. I've tested it in FF2 & 3 but I will go and have a 2nd look.

The forms being like that is done on-purpose so each element looks like its disabled, and when you hover over, or click them, they become active.

There was a reason for that design wise. I didn't want big blocks detracting from overall design, so I've tried to partially hide them just enough so they are still noticeable enough to see, but not grab too much attention.

You aren't the first person to comment on them though so I might have to scrap that idea.

You helped me on a good few ASP aspects of the site (breadcrumbs if I remember correctly). I said thanks at the time but thanks again.

One last request from yourself, can you give me some basic pointers on how to stop the SQL injection XSS attacks mentioned in the first comment in this topic.

I think I have done what I can. Ive blocked any script getting added through the forms and replaced "'", "''" etc. I think this enough for a small personal website isnt it?

Reply With Quote
  #6  
Old October 29th, 2008, 10:59 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
ASP Free God 48th Plane (28500 - 28999 posts)
 
Join Date: Sep 2004
Location: Israel
Posts: 28,836 Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 21st Grade (Above 100000 Reputation Level)  Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2Folding Points: 544103 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 3 Months 2 Weeks 1 Day 13 h 54 m 20 sec
Reputation Power: 2389
I'm using Firefox 3.0.3 version. how the ticker should behave?

regarding the security, I fear I don't have the required experience in this.
Memnoch is much better in those areas, he will have the best answer.

Reply With Quote
  #7  
Old October 29th, 2008, 12:10 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 15th Plane (12000 - 12499 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 12,025 Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level)Memnoch User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 12 h 15 m 14 sec
Reputation Power: 628
Quote:
Originally Posted by shmerty
One last request from yourself, can you give me some basic pointers on how to stop the SQL injection XSS attacks mentioned in the first comment in this topic.

I think I have done what I can. Ive blocked any script getting added through the forms and replaced "'", "''" etc. I think this enough for a small personal website isnt it?

Only allow characters that are acceptable, such as A-Z, a-z, 0-9. Escape all potentially malicious characters, such as '. Then HTMLEncode all output, so characters such as <, >, ", etc...

Get rendered as & lt; & gt; & quot; <--- Spaced for display purposes.

Reply With Quote
  #8  
Old October 29th, 2008, 12:56 PM
shmerty shmerty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 93 shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 36 m 56 sec
Reputation Power: 6
Quote:
Originally Posted by Shadow Wizard
I'm using Firefox 3.0.3 version. how the ticker should behave?

regarding the security, I fear I don't have the required experience in this.
Memnoch is much better in those areas, he will have the best answer.


It should behave exactly the same as the BBC's but mines goes from right to left.

I have added the random typo thing though that spits out some random characters (sometimes), deletes them, and moves on.

Is this what you are meaning? If not, can you take a screen dump and post it up?

Reply With Quote
  #9  
Old October 29th, 2008, 12:59 PM
shmerty shmerty is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 93 shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level)shmerty User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 36 m 56 sec
Reputation Power: 6
Quote:
Originally Posted by Memnoch
Only allow characters that are acceptable, such as A-Z, a-z, 0-9. Escape all potentially malicious characters, such as '. Then HTMLEncode all output, so characters such as <, >, ", etc...

Get rendered as & lt; & gt; & quot; <--- Spaced for display purposes.


Cheers Memnoch!

I will use 'server.HTMLEncode' when outputting the recordsets then and do what you mentioned above.

Reply With Quote
Reply

Viewing: ASP Free ForumsWeb DesignSite Reviews > Http://www.liamsmart.co.uk


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
Stay green...Green IT