# US 9,356,955 B2 · Methods for determining cross-site scripting and related vulnerabilities in applications

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,356,955 B2
- Document ID: US9356955B2
- Status: Granted
- Kind: B2
- Application number: 14/658,393
- Filed: 2015-03-16
- Published: 2015-09-17
- Granted: 2016-05-31
- Earliest claimed: 2014-03-15
- Assignees: Kenneth F. Belva
- Applicants: Kenneth F. Belva
- Inventors: Kenneth F. Belva
- Web page: https://patentgrep.com/patent/US9356955B2

## CPC

- H04L 63/1433: {Vulnerability analysis}
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- G06F 2221/033: Test or assess software
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The invention provides computer-implemented methods and computer systems for testing applications such as web-based (HTTP) applications for cross-site scripting (XSS) and related security vulnerabilities and permits the discovery of previously unknown XSS and related vulnerabilities in applications without relying on known or previously generated static XSS signatures. The invention may be applied to any type of XSS or related vulnerability for any variation of application code.

## Claims

### Claim 1

A computer-implemented method for testing an application for cross-site scripting vulnerabilities, comprising the steps of:
under control of at least one processor,
(a) for at least one field, parameter or Uniform Resource Locator (URL) of the application, submitting a request in which the field, parameter or URL contains a test slug consisting of an encoded or non-encoded test character or a string of test characters between two default slugs;
(b) determining when the application returns the test slug with the test character or string of test characters and whether any of the test characters in the test slug are transformed or not transformed in the returned test slug;
(c) storing in non-transitory computer memory the result of the determinations made in step (b);
(d) repeating steps (a)-(c) for a plurality of different test characters or strings of test characters;
(e) generating at least one exploit by automatically determining the sequence of characters needed to create syntactically executable correct code;
(f) storing the at least one exploit in non-transitory computer memory; and
(g) before steps (a)-(d),
(i) for at least one field, parameter or URL of the application, submitting a request in which the parameter, field or URL contains a default slug not having any special characters; and
(ii) determining when the application reflects the default slug without any transformation of characters in response to the request,
wherein when the application returns the default slug without any transformation of characters, the test slug used in step (a) consists of the encoded or non-encoded test character(s) sandwiched between two default slugs which are the same or different.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the test character is a special character or at least one of the test characters of the string of test characters is a special character.

### Claim 3

A computer system configured to test an application for cross-site scripting vulnerabilities, comprising:
at least one processor;
non-transitory processor-accessible memory; and
computer instructions stored in the non-transitory processor-accessible memory, said computer instructions configured to direct the at least one processor to perform the steps of:
(a) for at least one field, parameter or Uniform Resource Locator (URL) of the application, submitting a request in which the field, parameter or URL contains a test slug consisting of an encoded or non-encoded test character or a string of test characters between two default slugs;
(b) determining when the application returns the test slug with the test character or string of test characters and whether any of the test characters in the test slug are transformed or not transformed in the returned test slug;
(c) storing in the non-transitory processor-accessible memory the result of the determinations made in step (b);
(d) repeating steps (a)-(c) for a plurality of different test characters or strings of test characters;
(e) generating at least one exploit by automatically determining the sequence of characters needed to create syntactically executable correct code;
(f) storing the at least one exploit in the non-transitory processor-accessible memory; and
(g) before steps (a)-(d),
(i) for at least one field, parameter or URL of the application, submitting a request in which the parameter, field or URL contains a default slug not having any special characters; and
(ii) determining when the application reflects the default slug without any transformation of characters in response to the request,
wherein when the application returns the default slug without any transformation of characters, the test slug used in step (a) consists of the encoded or non-encoded test character(s) sandwiched between two default slugs which are the same or different.

### Claim 4 (depends on 3)

The computer system of claim 3, wherein the test character is a special character or at least one of the test characters of the string of test characters is a special character.

### Claim 5 (depends on 3)

The computer system of claim 3, further comprising:
a communication module under control of the at least processor, the communications module configured to provide communication between the computer system and the application to be tested for cross-site scripting vulnerabilities by the computer system.

### Claim 6 (depends on 5)

The computer system of claim 5, wherein the test character is a special character or at least one of the test characters of the string of test characters is a special character.
