# US 2013/0160117 A1 · Identifying requests that invalidate user sessions

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

- Number: US 2013/0160117 A1
- Document ID: US20130160117A1
- Status: Published application
- Kind: A1
- Application number: 13/711,970
- Filed: 2012-12-12
- Published: 2013-06-20
- Earliest claimed: 2011-12-20
- Assignees: International Business Machines Corporation
- Inventors: PAUL IONESCU; IOSIF VIOREL ONUT; ORI SEGAL; WAYNE DUNCAN SMITH
- Web page: https://patentgrep.com/patent/US20130160117A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- G06F 11/3668: Testing of software
- G06F 11/3676: {for coverage analysis}
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 16/951: Indexing; Web crawling techniques
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- H04L 63/1433: {Vulnerability analysis}
- 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

An illustrative embodiment of a computer-implemented process for identifying a request invalidating a session excludes all marked logout requests of a Web application, crawls an identified next portion of the Web application and responsive to a determination, in one instance, that the state of the crawl is out of session, logs in to the Web application. The computer-implemented process further selects all crawl requests sent since a last time the crawl was in-session, excluding all marked logout requests and responsive to a determination that requests remain, crawls a selected next unprocessed request. Responsive to a determination, in the next instance, that state of the crawl is out of session and the selected request meets logout request criteria, the computer-implemented process marks the selected request as a logout request.

## Claims

### Claim 1

A computer-implemented process for identifying a request invalidating a session, the computer-implemented process comprising:
excluding all marked logout requests of a Web application;
identifying a next portion of the Web application;
crawling the identified next portion of the Web application;
determining, in one instance, whether a state of a crawl is out of session;
responsive to a determination, in one instance, that the state of the crawl is out of session, logging in to the Web application;
selecting all crawl requests sent since a last time the crawl was in-session, excluding all marked logout requests;
determining whether any requests remain;
responsive to a determination that requests remain, selecting a next unprocessed request;
crawling the selected next unprocessed request;
determining whether, in a next instance, the state of the crawl is out of session;
responsive to a determination, in the next instance, that state of the crawl is out of session, determining whether the selected request meets logout request criteria; and
responsive to a determination that the selected request meets logout request criteria, marking the selected request as a logout request.

### Claim 2 (depends on 1)

The computer-implemented process of claim 1 wherein determining, in one instance, whether a state of a crawl is out of session further comprises:
determining whether an end of a scan is reached;
responsive to a determination that the end of the scan is reached, crawling each marked logout request of the Web application, performing a login after each marked request;
responsive to a determination that the end of the scan is not reached, determining whether to perform an in-session check now;
responsive to a determination to perform the in-session check now, sending an in-session check request to a server; and
analyzing a response, associated with the in-session check request, received from the server.

### Claim 3 (depends on 1)

The computer-implemented process of claim 1 wherein determining whether, in a next instance, the state of the crawl is out of session further comprises:
sending an in-session check request to a server; and
analyzing a response, associated with the in-session check request, received from the server.

### Claim 4 (depends on 1)

The computer-implemented process of claim 1 wherein determining whether the selected request meets logout request criteria further comprises:
receiving predetermined logout request criteria from a data structure, wherein the data is obtained from one of a configuration file, a property file and a database.

### Claim 5 (depends on 1)

The computer-implemented process of claim 1 wherein determining whether the selected request meets logout request criteria further comprises:
analyzing the selected request using a set of criteria including mandatory criteria in combination with a selection from among a set of optional criteria.

### Claim 6 (depends on 5)

The computer-implemented process of claim 5 wherein the mandatory criteria further comprises a requirement that the selected request is a crawl request and does not return one of an error code and a custom error page, and wherein the selected request further satisfies at least one criterion of the request redirects to the Web application home page, the request redirects to the Web application login page, the request results in a session cookie value being changed, the request results in a session cookie being deleted and the request results in a request response including a script that modifies the session cookie value.

### Claim 7 (depends on 1)

The computer-implemented process of claim 1 wherein marking the selected request as a logout request further comprises:
logging in to the Web application to establish a session.

### Claim 8

A computer program product for identifying a request invalidating a session, the computer program product comprising:
a computer recordable-type media containing computer executable program code stored thereon, the computer executable program code comprising:
computer executable program code for excluding all marked logout requests of a Web application;
computer executable program code for identifying a next portion of the Web application;
computer executable program code for crawling the identified next portion of the Web application;
computer executable program code for determining, in one instance, whether a state of a crawl is out of session;
computer executable program code responsive to a determination, in one instance, that the state of the crawl is out of session, for logging in to the Web application;
computer executable program code for selecting all crawl requests sent since a last time the crawl was in-session, excluding all marked logout requests;
computer executable program code for determining whether any requests remain;
computer executable program code responsive to a determination that requests remain, for selecting a next unprocessed request;
computer executable program code for crawling the selected next unprocessed request;
computer executable program code for determining whether, in a next instance, the state of the crawl is out of session;
computer executable program code responsive to a determination, in the next instance, that state of the crawl is out of session, for determining whether the selected request meets logout request criteria; and
computer executable program code responsive to a determination that the selected request meets logout request criteria, for marking the selected request as a logout request.

### Claim 9 (depends on 8)

The computer program product of claim 8 wherein computer executable program code for determining, in one instance, whether a state of a crawl is out of session further comprises:
computer executable program code for determining whether an end of a scan is reached;
computer executable program code responsive to a determination that the end of the scan is reached, for crawling each marked logout request of the Web application, performing a login after each marked request;
computer executable program code for responsive to a determination that the end of the scan is not reached, determining whether to perform an in-session check now;
computer executable program code responsive to a determination to perform the in-session check now, for sending an in-session check request to a server; and
computer executable program code for analyzing a response, associated with the in-session check, received from the server.

### Claim 10 (depends on 8)

The computer program product of claim 8 wherein computer executable program code for determining whether, in a next instance, the state of the crawl is out of session further comprises:
computer executable program code for sending an in-session check request to a server; and
computer executable program code for analyzing a response, associated with the in-session check request, received from the server.

### Claim 11 (depends on 8)

The computer program product of claim 8 wherein computer executable program code for determining whether the selected request meets logout request criteria further comprises:
computer executable program code for receiving predetermined logout request criteria from a data structure, wherein the data is obtained from one of a configuration file, a property file and a database.

### Claim 12 (depends on 8)

The computer program product of claim 8 wherein computer executable program code for determining whether the selected request meets logout request criteria further comprises:
computer executable program code for analyzing the selected request using a set of criteria including mandatory criteria in combination with a selection from among a set of optional criteria.

### Claim 13 (depends on 12)

The computer program product of claim 12 wherein the mandatory criteria further comprises a requirement that the selected request is a crawl request and does not return one of an error code and a custom error page, and wherein the selected request further satisfies at least one criterion of the request redirects to the Web application home page, the request redirects to the Web application login page, the request results in a session cookie value being changed, the request results in a session cookie being deleted and the request results in a request response including a script that modifies the session cookie value.

### Claim 14 (depends on 8)

The computer program product of claim 8 wherein computer executable program code for marking the selected request as a logout request further comprises:
computer executable program code for logging in to the Web application to establish a session.

### Claim 15

An apparatus for identifying a request invalidating a session, the apparatus comprising:
a communications fabric;
a memory connected to the communications fabric, wherein the memory contains computer executable program code;
a communications unit connected to the communications fabric;
an input/output unit connected to the communications fabric;
a display connected to the communications fabric; and
a processor unit connected to the communications fabric, wherein the processor unit executes the computer executable program code to direct the apparatus to:
exclude all marked logout requests of a Web application;
identify a next portion of the Web application;
crawl the identified next portion of the Web application;
determine, in one instance, whether a state of a crawl is out of session;
responsive to a determination, in one instance, that the state of the crawl is out of session, log in to the Web application;
select all crawl requests sent since a last time the crawl was in-session, excluding all marked logout requests;
determine whether any requests remain;
responsive to a determination that requests remain, select a next unprocessed request;
crawl the selected next unprocessed request;
determine whether, in a next instance, the state of the crawl is out of session;
responsive to a determination, in the next instance, that state of the crawl is out of session, determine whether the selected request meets logout request criteria; and
responsive to a determination that the selected request meets logout request criteria, mark the selected request as a logout request.

### Claim 16 (depends on 15)

The apparatus of claim 15 wherein the processor unit executes the computer executable program code to determine, in one instance, whether a state of a crawl is out of session further directs the apparatus to:
determine whether an end of a scan is reached;
responsive to a determination that the end of the scan is reached, crawl each marked logout request of the Web application, performing a login after each marked request
responsive to a determination that the end of the scan is not reached, determine whether to perform an in-session check now;
responsive to a determination to perform the in-session check now, send an in-session check request to a server; and
analyze a response, associated with the in-session check request, received from the server.

### Claim 17 (depends on 15)

The apparatus of claim 15 wherein the processor unit executes the computer executable program code to determine whether, in a next instance, the state of the crawl is out of session further directs the apparatus to:
send an in-session check request to a server; and
analyze a response, associated with the in-session check request, received from the server.

### Claim 18 (depends on 15)

The apparatus of claim 15 wherein the processor unit executes the computer executable program code to determine whether the selected request meets logout request criteria further directs the apparatus to:
receive predetermined logout request criteria from a data structure, wherein the data is obtained from one of a configuration file, a property file and a database.

### Claim 19 (depends on 15)

The apparatus of claim 15 wherein the processor unit executes the computer executable program code to determine whether the selected request meets logout request criteria further directs the apparatus to:
analyze the selected request using a set of criteria including mandatory criteria in combination with a selection from among a set of optional criteria.

### Claim 20 (depends on 19)

The apparatus of claim 19 wherein the mandatory criteria further comprises a requirement that the selected request is a crawl request and does not return one of an error code and a custom error page, and wherein the selected request further satisfies at least one criterion of the request redirects to the Web application home page, the request redirects to the Web application login page, the request results in a session cookie value being changed, the request results in a session cookie being deleted and the request results in a request response including a script that modifies the session cookie value.
