From: Gunnar \"Nick\" Bluth <gunnar.bluth@pro-open.de>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: SELECT of pseudo hex value gives unexpected result
Date: Tue, 29 Jan 2019 17:18:07 +0100
Message-ID: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de> (raw)
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
Attachments:
signature.asc (application/pgp-signature, 487B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: gunnar.bluth@pro-open.de
Subject: Re: SELECT of pseudo hex value gives unexpected result
In-Reply-To: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de>
References: <3edb0e31-8fea-3cf7-477c-7554ea25975e@pro-open.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox