IP Library Granted Patent US 10,264,011
Granted Patent B2
US 10,264,011 · App. 15/914,679 · Granted Apr 16, 2019

Persistent cross-site scripting vulnerability detection

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 10,264,011
App. No.
15/914,679
Granted
Apr 16, 2019
Kind
B2
Abstract

Various techniques for detecting a persistent cross-site scripting vulnerability are described herein. In one example, a method includes detecting, via the processor, a read operation executed on a resource using an instrumentation mechanism and returning, via the processor, a malicious script in response to the read operation. The method also includes detecting, via the processor, a write operation executed on the resource using the instrumentation mechanism and detecting, via the processor, a script operation executed by the malicious script that results in resource data being sent to an external computing device from a client device. Furthermore, the method includes receiving, via the processor, metadata indicating the execution of the read operation, the write operation, and the script operation.

Claims (39)

1. A method for detecting a persistent cross-site scripting vulnerability comprising:

inserting, via a processor, a client-side script as input into a web application, wherein the client-side script includes instructions when executed to return an exact copy of the client-side script from the device that executes the script, back to an external computing device;

requesting, via the processor, data from the web application;

in response to requesting the data, detecting that resource data is sent from a client device to the external computing device in response to execution of the client-side script on the client device, wherein the external computing device is a different device than the client device;

receiving at the external computing device, the inserted client-side script in response to requesting data from the web application;

receiving from the external computing device, the inserted client-side script, in response to receiving the client-side script at the external computing device;

detecting, via the processor, that the client-side script is subsequently returned unaltered via the data request by comparing the inserted client-side script with the received client-side script, and that execution of the client-side script occurs.

2. The method of claim 1 , further comprising:

monitoring function calls to one or more resources to detect a write operation attempting to store the inputted client-side script on a resource without alteration.

3. The method of claim 1 , wherein the inserted input simulates user interaction with the web application.

4. The method of claim 1 , further comprising, responsive to detecting that execution of the client-side script occurred, creating an indicator of a cross-site scripting vulnerability found in the web application.

5. The method of claim 1 , wherein the inserted client-side script contains instructions to send an alert when executed.

6. The method of claim 5 , wherein detecting whether execution of the client-side script occurs comprises receiving the alert.

7. The method of claim 2 , wherein the inserted input simulates user interaction with the web application.

8. The method of claim 2 , further comprising, responsive to detecting that execution of the client-side script occurred, creating an indicator of a cross-site scripting vulnerability found in the web application.

9. A system for detecting a persistent cross-site scripting vulnerability comprising:

a memory device comprising processor executable instructions; and

a processor, the processor executable instructions including instructions to:

insert a client-side script as input into a web application, wherein the client-side script includes instructions when executed to return an exact copy of the client-side script from the device that executes the script, back to an external computing device;

request data from the web application;

in response to the data request, detect that resource data from a client device is sent to an external computing device in response to execution of the client-side script on the client device, wherein the external computing device is a different device than the client device;

receive at the external computing device, the inserted client-side script in response to requesting data from the web;

receive from the external computing device, the inserted client-side script, in response to receiving the client-side script at the external computing device;

detect that the client-side script is subsequently returned unaltered via the data request by comparing the inserted client-side script with the received client-side script, and that execution of the client-side script occurs.

10. The system of claim 9 , wherein the inserted input simulates user interaction with the web application.

11. The system of claim 9 , wherein the processor executable instructions further include instructions to, responsive to detecting that execution of the client-side script occurred, create an indicator of a cross-site scripting vulnerability in the web applications, the indicator including metadata comprising at least one of: call stack data, a test identifier, a read bit, a write bit, and a script bit.

12. A computer program product for detecting a persistent cross-site scripting vulnerability, the computer program product comprising:

one or more computer readable storage media;

program instructions stored on the computer readable storage media, the program instructions comprising:

program instructions to insert a client-side script as input into a web application, wherein the client-side script includes instructions when executed to return an exact copy of the client-side script from the device that executes the script, back to an external computing device;

program instructions to request data from the web application; and

in response to the data request, program instructions to detect that resource data from a client device is sent to an external computing device in response to execution of the client-side script on the client device, wherein the external computing device is a different device than the client device;

program instructions to receive at the external computing device, the inserted client-side script in response to requesting data from the web;

program instructions to receive from the external computing device, the inserted client-side script, in response to receiving the client-side script at the external computing device;

program instructions to detect that the inserted client-side script is subsequently returned unaltered via the data request by comparing the inserted client-side script with the received client-side script, and that execution of the client-side script occurs.

13. The computer program product of claim 12 , wherein the program instructions further comprise:

program instructions to monitor function calls to one or more resources to detect a write operation attempting to store the inputted client-side script on a resource without.

14. The computer program product of claim 12 , wherein the program instructions further comprise program instructions to detect whether resource data from a client device is sent to an external computing device in response to execution of the client-side script on the client device.

15. The computer program product of claim 12 , wherein the inserted input simulates user interaction with the web application.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 13, 2019
From: INTERNATIONAL BUSINESS MACHINES CORPORATION
To: HCL TECHNOLOGIES LIMITED
Reel/Frame 050374/0781 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 7, 2018
From: BRONSHTEIN, EMANUEL; HAY, ROEE; KEDMI, SAGI
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 045136/0088 →