| Bug #29801 | Federated engine crashes local server if remote server sends malicious response | ||
|---|---|---|---|
| Submitted: | 14 Jul 2007 17:45 | Modified: | 31 Oct 2007 15:20 |
| Reporter: | Philip Stoev | ||
| Status: | Closed | ||
| Category: | Server: Federated | Severity: | S2 (Serious) |
| Version: | 5.0.41-debug-log; 5.1 | OS: | Any (Linux) |
| Assigned to: | Alexey Botchkov | Target Version: | |
| Tags: | qc, backport_050050SP1 | ||
[14 Jul 2007 17:45]
Philip Stoev
[17 Jul 2007 22:58]
Sveta Smirnova
Thank you for the report. Please provide example from real life when server can "send a response that contains less than 14 columns".
[18 Jul 2007 9:11]
Sveta Smirnova
Thank you for the feedback. Verified as described in last comment.
[15 Oct 2007 8:16]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/35541 ChangeSet@1.2538, 2007-10-15 10:11:52+05:00, holyfoot@mysql.com +1 -0 bug #29801 Federated engine crashes local server if remote server sends malicious response. We need to check if the SHOW TABLE STATUS query we issue inside the FEDERATED engine returned the result with the proper (or just sufficient) number of rows. Otherwise statements like row[12] can crash the server.
[29 Oct 2007 9:42]
Bugs System
Pushed into 5.0.52
[29 Oct 2007 9:45]
Bugs System
Pushed into 5.1.23-beta
[29 Oct 2007 9:48]
Bugs System
Pushed into 6.0.4-alpha
[31 Oct 2007 15:20]
MC Brown
A note has been added to the 5.0.52, 5.1.23 and 6.0.4 changelogs: Security Fix: When using a FEDERATED table, the local server can be forced to crash if the remote server returns a result with fewer columns than expected.
