MySQL 5 - Command Line Client HTML Special Characters HTML Injection

2008-09-30T00:00:00
ID EXPLOITPACK:9991B85B85687B0581F1F2FCC508050A
Type exploitpack
Reporter Thomas Henlich
Modified 2008-09-30T00:00:00

Description

MySQL 5 - Command Line Client HTML Special Characters HTML Injection

                                        
                                            source: https://www.securityfocus.com/bid/31486/info

MySQL is prone to an HTML-injection vulnerability because the application's command-line client fails to properly sanitize user-supplied input before using it in dynamically generated content.

Attacker-supplied HTML and script code would run in the context of the affected browser, potentially allowing the attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user. Other attacks are also possible.

$ mysql --html --execute "select '<a>'" ... <TABLE BORDER=1><TR><TH><a></TH></TR><TR><TD><a></TD></TR></TABLE>