A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » Amateur Astronomy
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Where Science Went Wrong (hilarious web site)



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #30  
Old May 18th 10, 04:14 AM posted to sci.astro.amateur,rec.arts.sf.written
David DeLaney
external usenet poster
 
Posts: 103
Default Where Science Went Wrong (hilarious web site)

Quadibloc wrote:
Mike Ash wrote:
Why? With any half-competent data layer, a good index will work and a
bad index will return an error. If your data layer can be exploited by
giving it a bad ID number, then your problem lies in the data layer.


Expected behavior is that *any* invalid URL gives a nice neat 404 error.

Nothing is _ever_ passed on to any code which can cause an unhandled
exception, because the results of an error are, by their very nature,
unpredictable. They can potentially be exploited for attack purposes,
or they can have denial-of-service results just by accident - bringing
the system down, or causing an infinite loop.

In this case, the design error is to allow the untrusted outside world
to make a database request directly. Instead, there should be a layer
of bombproof code that parses URLs, sorts out valid ones from invalid
ones, and then, once it gets a valid one, passes on the request to the
database engine.


Obxkcd: http://xkcd.com/327/

Dave "also see: the BLINK tag in my .sig" DeLaney
--
\/David DeLaney posting from "It's not the pot that grows the flower
It's not the clock that slows the hour The definition's plain for anyone to see
Love is all it takes to make a family" - R&P. VISUALIZE HAPPYNET VRbeableBLINK
http://www.vic.com/~dbd/ - net.legends FAQ & Magic / I WUV you in all CAPS! --K.
 




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Most hilarious ETX-90 photo ever? mx Amateur Astronomy 4 June 9th 08 04:00 PM
Hanson! -- read this, it is hilarious. Androcles[_7_] Astronomy Misc 6 January 20th 08 12:11 AM
National Science Foundation Selects Homestake Gold Mine as DeepUnderground Science Site (Forwarded) Andrew Yee Astronomy Misc 0 July 11th 07 05:37 PM
National Science Foundation Selects Homestake Gold Mine as Deep Underground Science Site (Forwarded) Andrew Yee[_1_] News 0 July 11th 07 04:48 PM
General Science Web Site Vtrade Policy 1 February 16th 04 07:11 PM


All times are GMT +1. The time now is 07:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 SpaceBanter.com.
The comments are property of their posters.