Object Relational Membrane - News
PostgreSQL SQL injection vulnerability
Item posted by Diedrich Vorberg <diedrich> on Wed 24 May 2006 08:12:42 AM UTC.
This vulnerability is not so much a fault of Postgres, but one of PHP's addslashes(), which will convert certain Unicode sequences to quotes, allowing to add arbitrary SQL to a Web-Request. It seems, orm2's quoting functions, which are based on string.replace(), are too primitive to be fooled by this. Also they operate on Python single byte strings only, which makes sure we're on the save side.
Cheers Diedrich
Powered by Savane 3.14-d7a4.
Corresponding source code