cipherguard-mad
Version:
Cipherguard javascript application library for the open source password manager for teams
35 lines (33 loc) • 2.38 kB
JavaScript
/**
* Cipherguard ~ Open source password manager for teams
* Copyright (c) KhulnaSoft Ltd (https://www.khulnasoft.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) KhulnaSoft Ltd (https://www.khulnasoft.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.khulnasoft.com KhulnaSoft(tm)
*/
const xss = {
'xss JavaScript directive quote semicolon': "javascript:document.write('xss1');",
'xss JavaScript directive quote no semicolon': "javascript:alert('xss2')",
'xss JavaScript directive double quote': 'javascript:alert("XSS3")',
'xss JavaScript directive case insensitive': "JaVaScRiPt:alert('XSS4')",
'xss Javascript directive HTML entities': 'javascript:alert("XSS5")',
'xss Javascript directive fromCharCode': 'javascript:alert(String.fromCharCode(88,83,83))',
'xss Decimal HTML character references': 'javascript:alert('XSS')',
'xss Decimal HTML character references without trailing semicolons': 'javascript:alert('XSS')',
'xss Hexadecimal HTML char references without trailing semicolons': 'javascript:alert('XSS')',
'xss Embedded tab': "jav ascript:alert('XSS10');",
'xss Embedded Encoded tab': "jav	ascript:alert('XSS11');",
'xss Embedded carriage return to break up XSS': "jav
ascript:alert('XSS12');",
'xss Embedded newline to break up XSS': "jav
ascript:alert('XSS13');",
'xss space and meta chars before the javascript': " javascript:alert('XSS14');",
'xss Extraneous >': '"' + "><script>alert('xss15')</script>",
'xss Extraneous closing double quote': '">' + "onclick=alert('xxs16')",
'xss & JavaScript includes': "&{alert('XSS17')}",
'xss null breaks up javascript directive': 'java\0script:alert("XSS18")'
};
export default xss;