# US 2016/0241588 A1 · 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 2016/0241588 A1
- Document ID: US20160241588A1
- Status: Published application
- Kind: A1
- Application number: 15/139,286
- Filed: 2016-04-26
- Published: 2016-08-18
- Earliest claimed: 2014-03-15
- Inventors: Kenneth F. Belva
- Web page: https://patentgrep.com/patent/US20160241588A1

## 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); and
(d) repeating steps (a)-(c) for a plurality of different test characters or strings of test characters.

### 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 (depends on 1)

The computer-implemented method of claim 1, further comprising the steps of:
before steps (a)-(d), 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
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 may be the same or different.

### Claim 4 (depends on 3)

The computer-implemented method 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 1)

The computer-implemented method of claim 1, wherein in step (a), the at least one field, parameter or Uniform Resource Locator (URL) of the application comprises a URL.

### Claim 6 (depends on 5)

The computer-implemented method 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.

### Claim 7 (depends on 3)

The computer-implemented method of claim 3, wherein the submitting step performed before steps (a)-(d) comprises:
before steps (a)-(d), for at least one URL of the application, submitting a request in which the URL contains a default slug not having any special characters.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, 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 9

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 non-transitory computer memory the result of the determinations made in step (b); and
(d) repeating steps (a)-(c) for a plurality of different test characters or strings of test characters.

### Claim 10 (depends on 9)

The computer system of claim 9, 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 11 (depends on 9)

The computer system of claim 9, 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 12 (depends on 11)

The computer system of claim 11, 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 13 (depends on 9)

The computer system of claim 9, wherein the computer instructions are further configured to direct the at least one processor to perform the steps of:
before steps (a)-(d), 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
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 may be the same or different.

### Claim 14 (depends on 10)

The computer system of claim 10, wherein the computer instructions are further configured to direct the at least one processor to perform the steps of:
before steps (a)-(d), 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
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 may be the same or different.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein the computer instructions are further configured to direct the at least one processor to perform the steps of:
before steps (a)-(d), 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
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 may be the same or different.

### Claim 16 (depends on 12)

The computer system of claim 12, wherein the computer instructions are further configured to direct the at least one processor to perform the steps of:
before steps (a)-(d), 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
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 may be the same or different.
