SunQuest
 
           Windows Security
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsSystem AdministrationWindows Security

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:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #16  
Old December 5th, 2006, 03:01 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 18 h 51 m 25 sec
Reputation Power: 180
Quote:
Originally Posted by Shadow Wizard
I used it in ASP code, see my code in post #7 - execute it
yourself, using the database degsy gave.

You already did so I'll move on to something else
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #17  
Old December 6th, 2006, 06:18 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 18 h 51 m 25 sec
Reputation Power: 180
To elaborate a bit more, nothing I can find in the Access documentation indicates that IIF is a supported Jet SQL statement, rather that it's a VBA function in access. Generally VBA functions in Access are not available to external ADO code, so my guess is still that the OLEDB provider or something else is performing the IIF, giving undesired results.

Reply With Quote
  #18  
Old December 7th, 2006, 03:37 AM
Shadow Wizard's Avatar
Shadow Wizard Shadow Wizard is offline
Moderator From Beyond
Click here for more information.
 
Join Date: Sep 2004
Location: Israel
Posts: 26,642 Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)Shadow Wizard User rank is General 7th Grade (Above 100000 Reputation Level)  Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1Folding Points: 326366 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 1 Week 4 Days 16 h 33 sec
Reputation Power: 1471
just got very interesting results.
I have executed the code in post #7 on my local machine
and got no "extra" contents, it only truncated the string
after 255 characters.
I have changed the code back to this:
Code:
sql = "SELECT id, name, section1, " &_
	"IIF(section1_enabled, section1, 'Empty') as sect1 " &_ 
	"FROM pages WHERE name = '" & page & "'"

attached is the result as IIF_screenshot_2.GIF.

after this I created system DSN and changed the code to use
this DSN.. I got error:
Code:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'Server.HTMLEncode'


to fix that, I changed this line:
Code:
	section1_HTML = Server.HTMLEncode(rs("section1"))

to this:
Code:
	section1_HTML = Server.HTMLEncode(section1)


and guess what? I could not replicate the problem of getting
"trash" contents. it always returned the first 255 characters
of whatever I gave it.
Attached Images
File Type: gif IIF_screenshot_2.GIF (10.0 KB, 218 views)

Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Security > Access IIF security leak


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway