SELECT of pseudo hex value gives unexpected result - Mailing list pgsql-general

From Gunnar \"Nick\" Bluth
Subject SELECT of pseudo hex value gives unexpected result
Date
Msg-id 3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de
Whole thread Raw
Responses Re: SELECT of pseudo hex value gives unexpected result  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: SELECT of pseudo hex value gives unexpected result  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-general
Hi,

I found this in an SQL-injection attempt today:
union select 0x5e73266725,0x5e73266725[,...],0x5e73266725;

Tried
SELECT 0x5e73266725;

and received:
-[ RECORD 1 ]--
x5e73266725 | 0

That was not what I expected... is this expected/documented behaviour?

Thx in advance!
--
Gunnar "Nick" Bluth
RHCE/SCLA

Mobil   +49 172 8853339
Email: gunnar.bluth@pro-open.de
__________________________________________________________________________
In 1984 mainstream users were choosing VMS over UNIX.  Ten years later
they are choosing Windows over UNIX.  What part of that message aren't you
getting? - Tom Payne


Attachment

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to set parameters in 'options'?
Next
From: Tom Lane
Date:
Subject: Re: SELECT of pseudo hex value gives unexpected result