IP Library › Granted Patent US 9,026,612
Granted Patent B2
US 9,026,612 · App. 13/447,952 · Granted May 5, 2015

Generating a custom parameter rule based on a comparison of a run-time value to a request URL

Inventors: Yair Amit (Tel-Aviv, IL); Roee Hay (Herzliya, IL); Roi Saltzman (Herzliya, IL); Omer Tripp (Herzliya, IL)
Assignee: International Business Machines
H04L29/08981
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,026,612
App. No.
13/447,952
Granted
May 5, 2015
Kind
B2
Abstract

Identifying at least one custom parameter in a request uniform resource locator (URL). The method can include identifying at least a first portion of source code of a Web application that typically consumes the custom parameter provided in the request URL and, via a processor, instrumenting the Web application at the first portion of the source code. The Web application can receive the request URL and the Web application can be executed with the instrumented source code. At least one run-time value consumed by the second portion of the source code can be identified, and the run-time value can be compared to the request URL to determine whether the run-time value intersects with the request URL. Responsive to determining that the run-time value intersects with the request URL, the run-time value can be identified as the custom parameter. A custom parameter rule can be generated based on the comparison.

Claims (54)

1. A method of identifying at least one custom parameter in a request uniform resource locator (URL), the method comprising:

identifying at least a first portion of source code of a Web application that typically consumes the at least one custom parameter provided in the request URL;

via a processor, instrumenting the Web application at the first portion of the source code;

receiving by the Web application the request URL and executing the Web application with the instrumented source code;

identifying at least one run-time value consumed by a second portion of the source code;

comparing the run-time value to the request URL to determine whether the run-time value intersects with the request URL;

responsive to determining that the run-time value intersects with the request URL, identifying the run-time value as the custom parameter; and

generating a custom parameter rule based on the comparison.

2. The method of claim 1 , further comprising:

determining that the second portion of source code of the Web application that reads the request URL; and

responsive to determining that the second portion of source code of the Web application reads the request URL, instrumenting the Web application at the second portion of the source code.

3. The method of claim 2 , wherein:

identifying the first portion of source code comprises identifying at least a first statement that typically consumes the at least one custom parameter provided in the request URL; and

identifying the second portion of source code comprises identifying at least a second statement that reads the request URL;

the method further comprising:

adding a first identifier to the source code to denote the first statement; and

adding a second identifier to the source code to denote the second statement.

4. The method of claim 3 , further comprising:

determining whether the first statement and the second statement intersect;

wherein instrumenting the Web application at the first portion of the source code comprises, responsive to determining that the first statement and the second statement intersect, instrumenting the source code to obtain the run-time value, wherein the run-time value is assigned to at least one variable processed by the first statement when the Web application is executed.

5. The method of claim 4 , further comprising:

during execution of the source code, tracking at least one flow of the run-time value from the second statement to the first statement; and

creating a mapping from the run-time value to the request URL.

6. The method of claim 5 , wherein generating the custom parameter rule comprises:

interpolating the custom-parameter rule based on the mapping of the run-time value to the request URL.

7. The method of claim 1 , further comprising:

receiving by the Web application a subsequent request URL; and

applying the custom parameter rule to the subsequent request URL to identify at least one custom parameter contained in the subsequent request URL.

8. A method of identifying at least one custom parameter in a request uniform resource locator (URL), the method comprising:

identifying at least a first portion of source code of a Web application that reads the request URL;

identifying at least a second portion of source code of the Web application that typically consumes the at least one custom parameter provided in the request URL;

via a processor, instrumenting the Web application at the first portion of the source code and at the second portion of the program code;

receiving by the Web application the request URL and executing the Web application with the instrumented source code;

identifying at least one run-time value consumed by the second portion of the source code;

comparing the run-time value to the request URL to determine whether the run-time value intersects with the request URL;

responsive to determining that the run-time value intersects with the request URL, identifying the run-time value as the custom parameter; and

generating a custom parameter rule based on the comparison.

9. The method of claim 8 , wherein:

identifying the first portion of source code comprises identifying at least a first statement that reads the request URL;

identifying the second portion of source code comprises identifying at least a second statement that typically consumes the at least one custom parameter provided in the request URL; and

the method further comprising:

adding a first identifier to the source code to denote the first statement; and

adding a second identifier to the source code to denote the second statement.

10. The method of claim 9 , further comprising:

determining whether the first statement and the second statement intersect;

wherein instrumenting the Web application at the second portion of the source code comprises, responsive to determining that the first and second statements intersect, instrumenting the source code to obtain the run-time value, wherein the run-time value is assigned to at least one variable processed by the second statement when the Web application is executed.

11. The method of claim 10 , further comprising:

during execution of the source code, tracking at least one flow of the run-time value from the first statement to the second statement; and

creating a mapping from the run-time value to the request URL.

12. The method of claim 11 , wherein generating the custom parameter rule comprises:

interpolating the custom-parameter rule based on the mapping of the run-time value to the request URL.

13. The method of claim 8 , further comprising:

receiving by the Web application a subsequent request URL; and

applying the custom parameter rule to the subsequent request URL to identify at least one custom parameter contained in the subsequent request URL.

Continuity (2)
Continuation 13334718 · Dec 22, 2011
Related Publication 20130167124A1 · Jun 27, 2013