Re: Magic Quotes question



On Jan 17, 2007 at 1110 +0400, DokFLeed appeared and said:
[...]
point is, if magic quotes can stop this, so why is it going to be removed
in php6? it can simply stay and be activated or deactivated on will.

This is the reason why it is going to be removed. It creates an ambiguity
for server admins and developers alike since there is no setting you
can rely on. I agree with the author of this text:

http://erfurtwiki.sourceforge.net/AvoidMagicQuotes

And I experienced some configurations where Magic Quotes creates more
harm than potential security weaknesses. It's better to teach your
developers how to handle escape characters.

Best,
Lynx.

--
FAITH, n. - Belief without evidence in what is told by one who speaks
without knowledge, of things without parallel.
-- http://www.alcyone.com/max/lit/devils/f.html --


------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.

http://www.cenzic.com/products_services/download_hailstorm.php?camp=701600000008bOW
------------------------------------------------------------------------



Relevant Pages

  • Re: Injected, whats next
    ... Tried that, and it looked promising, however got stuck with the magic quotes. ... Does anyone know a way to upload a file to a server through MySQL! ... Cenzic Hailstorm finds vulnerabilities fast. ...
    (Pen-Test)
  • Re: Magic Quotes question
    ... Why wouldnt you just put the escape function inside of the database ... many modern db engines can use *any* delimiter, for any language, ... "magic quotes" was simply the wrong level to apply data filtering at. ... Cenzic Hailstorm finds vulnerabilities fast. ...
    (Pen-Test)
  • Re: Magic Quotes question
    ... is there an actual way to bypass Magic Quotes? ... CHAR doesnt work, also %% doesnt work ... Some data engines use \', others use '', others need no ' escaping, and since many modern db engines can use *any* delimiter, for any language, "magic quotes" was simply the wrong level to apply data filtering at. ... Cenzic Hailstorm finds vulnerabilities fast. ...
    (Pen-Test)
  • Magic Quotes question
    ... does anyone know how to bypass magic quotes? ... a proven working way. ... I am looking for ways to by pass magic quotes to inject this ... Cenzic Hailstorm finds vulnerabilities fast. ...
    (Pen-Test)
  • Re: Magic Quotes question
    ... Magic quotes, as well as the correct db-specific escaping functions ... in MySQL, not sure of others), which means you have to use ' or ", ... Cenzic Hailstorm finds vulnerabilities fast. ...
    (Pen-Test)