|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-21 01:04 UTC] ssufficool at gmail dot com
[2014-01-01 12:48 UTC] felipe@php.net
-Package: PDO related
+Package: PDO DBlib
[2014-10-25 03:15 UTC] ssufficool@php.net
[2014-10-25 03:15 UTC] ssufficool@php.net
-Status: Open
+Status: Closed
[2014-11-18 20:34 UTC] ab@php.net
[2016-07-05 05:39 UTC] chris dot kingslynne at gmail dot com
[2016-07-20 11:40 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Description: ------------ When using bound parameter with char(0), the parameter is truncated. This is a possible SQL injection flaw in the dblib quote implementation. Test script: --------------- $stmt = $pdo->prepare("insert into test(image_field) values(?)"); $blob = file_get_contents("test.jpg"); $stmt->execute(array($blob)); Expected result: ---------------- No error Actual result: -------------- invalid statement due to truncation of ASCIIZ string in dblib_handle_quoter