Condition excluding XML output from server export was broken
[phpmyadmin.git] / test / test_data / exploit_test.sql
blob6ac7fba4b3e05fa3771eeb22ea2f2ed9ebcc0e7b
1 -- phpMyAdmin SQL Dump
2 -- version 3.5.0-dev
3 -- http://www.phpmyadmin.net
4 --
5 -- Host: barclay
6 -- Generation Time: Aug 06, 2011 at 04:53 PM
7 -- Server version: 5.1.49-3-log
8 -- PHP Version: 5.3.3-7+squeeze1
10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11 SET time_zone = "+00:00";
14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 /*!40101 SET NAMES utf8 */;
19 DROP DATABASE IF EXISTS `"><script>alert(200);</script>`;
20 DROP DATABASE IF EXISTS `'><script>alert(201);</script>`;
21 DROP DATABASE IF EXISTS `exploit_test`;
24 -- Database: `"><script>alert(200);</script>`
26 CREATE DATABASE `"><script>alert(200);</script>` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
29 -- Database: `'><script>alert(201);</script>`
31 CREATE DATABASE `'><script>alert(201);</script>` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
34 -- Database: `exploit_test`
36 CREATE DATABASE `exploit_test` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
37 USE `exploit_test`;
39 -- --------------------------------------------------------
42 -- Table structure for table `"><script>alert(109);</script>`
45 CREATE TABLE IF NOT EXISTS `"><script>alert(109);</script>` (
46   `id` int(2) NOT NULL,
47   `foo` varchar(255) NOT NULL
48 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
51 -- Dumping data for table `"><script>alert(109);</script>`
54 INSERT INTO `"><script>alert(109);</script>` (`id`, `foo`) VALUES
55 (1, ''),
56 (2, '');
58 -- --------------------------------------------------------
61 -- Table structure for table `';  eval('alert(107)')`
64 CREATE TABLE IF NOT EXISTS `';  eval('alert(107)')` (
65   `id` int(11) NOT NULL
66 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
68 -- --------------------------------------------------------
71 -- Table structure for table `'><script>alert(106);</script>`
74 CREATE TABLE IF NOT EXISTS `'><script>alert(106);</script>` (
75   `id` int(2) NOT NULL
76 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
78 -- --------------------------------------------------------
81 -- Table structure for table `<script>alert(105);</script>`
84 CREATE TABLE IF NOT EXISTS `<script>alert(105);</script>` (
85   `dsaf` int(4) NOT NULL
86 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
89 -- Dumping data for table `<script>alert(105);</script>`
92 INSERT INTO `<script>alert(105);</script>` (`dsaf`) VALUES
93 (1);
95 -- --------------------------------------------------------
98 -- Table structure for table `evil_column_names`
101 CREATE TABLE IF NOT EXISTS `evil_column_names` (
102   `<script>alert(100);</script>` int(1) NOT NULL,
103   `"><script>alert(101);</script>` int(2) NOT NULL,
104   `'><script>alert(102);</script>` int(2) NOT NULL,
105   `evil_comment` int(3) NOT NULL COMMENT '<script>alert(104);</script>'
106 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
109 -- Dumping data for table `evil_column_names`
112 INSERT INTO `evil_column_names` (`<script>alert(100);</script>`, `"><script>alert(101);</script>`, `'><script>alert(102);</script>`, `evil_comment`) VALUES
113 (1, 23, 45, 5),
114 (2, 3, 77, 3);
116 -- --------------------------------------------------------
119 -- Table structure for table `evil_content`
122 CREATE TABLE IF NOT EXISTS `evil_content` (
123           `text` varchar(255) NOT NULL
124         ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
128 -- Dumping data for table `evil_content`
131 INSERT INTO `evil_content` (`text`) VALUES
132 ('"><script>alert(301);</script>'),
133 ('''><script>alert(302);</script>'),
134 ('<script>alert(303);</script>'),
135 (''';  eval(''alert(304)'');');
137 -- --------------------------------------------------------
140 -- Table structure for table `evil_table_comment`
143 CREATE TABLE IF NOT EXISTS `evil_table_comment` (
144   `id` int(1) NOT NULL
145 ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='"><script>alert(400);</script>';
148 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
149 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
150 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;