# LazyCSRF | More Powerful CSRF PoC Generator on Burp Suite

**URL:** <https://onehack.st/t/lazycsrf-more-powerful-csrf-poc-generator-on-burp-suite/215649>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking\
**Created:** [March 1, 2022, 9:48am UTC](https://onehack.st/t/lazycsrf-more-powerful-csrf-poc-generator-on-burp-suite/215649 "2022-03-01T09:48:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteHat](https://onehack.st/user_avatar/onehack.st/whitehat/32/162514_2.png) [@WhiteHat](https://onehack.st/u/WhiteHat)\
**Post date:** [March 1, 2022, 9:48am UTC](https://onehack.st/t/lazycsrf-more-powerful-csrf-poc-generator-on-burp-suite/215649/1 "2022-03-01T09:48:20Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/f/6/f6b60f16ecfa1ef38ca5cd02fcbfd26e02b37f8e.png)

[![GitHub release](https://camo.githubusercontent.com/96de0ddb6e74afff101b17933cfa5072865944c8c9c1abb177deb6458a30e6e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f746b6d72752f6c617a79637372662e737667)](https://github.com/tkmru/lazycsrf/releases/latest) [![License: MIT](https://camo.githubusercontent.com/5fab2edf3816ef9fb3ebcaf6e613fa7b40ff7652ec69e5f6e7f695aa24bf5ce6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://github.com/tkmru/lazycsrf/blob/main/LICENSE.md) [![](https://camo.githubusercontent.com/f6029b688262ea33f53af58aadc2b052c369fae831de1bc49a01b29c95959a2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f426c61636b253230486174253230417273656e616c2d4555524f5045253230323032312d626c75652e737667)](https://www.blackhat.com/eu-21/arsenal/schedule/index.html#lazycsrf-a-more-useful-csrf-poc-generator-on-burpsuite-25088)

LazyCSRF is a more useful CSRF PoC generator that runs on Burp Suite.

## Motivation

Burp Suite is an intercepting HTTP Proxy, and it is the defacto tool for performing web application security testing. The feature of Burp Suite that I like the most is `Generate CSRF PoC`. However, the function to automatically determine the content of request is broken, and it will try to generate PoC using `form` even for PoC that cannot be represented by `form`, such as cases using JSON for parameters or PUT requests. In addition, multibyte characters that can be displayed in Burp Suite itself are often garbled in the generated CSRF PoC. These were the motivations for creating LazyCSRF.

## Features

- Automatically switch to PoC using XMLHttpRequest
  - In case the parameter is JSON
  - In case the request is a PUT/PATCH/DELETE

- Support displaying multibyte characters (like Japanese)
- Generating CSRF PoC with Burp Suite Community Edition (of course, it also works in Professional Edition)

### Difference in display of multibyte characters

The following image shows the difference in the display of multibyte characters between Burp’s CSRF PoC generator and LazyCSRF. LazyCSRF can generate PoC for CSRF without garbling multibyte characters. This is only the case if the characters are not garbled on Burp Suite.

[![display-japanese](https://github.com/tkmru/lazyCSRF/raw/main/img/display-japanese.png)](https://github.com/tkmru/lazyCSRF/blob/main/img/display-japanese.png)

## Installation

Download the JAR from [GitHub Releases](https://github.com/tkmru/lazyCSRF/releases/). In Burp Suite, go to the Extensions tab in the Extender tab, and add a new extension. Select the extension type `Java`, and specify the location of the JAR.

## Usage

You can generate a CSRF PoC by selecting `Extensions` → `LazyCSRF` → `Generate CSRF PoC By LazyCSRF` from the menu that opens by right-clicking on Burp Suite.

[![menu](https://github.com/tkmru/lazyCSRF/raw/main/img/menu.png)](https://github.com/tkmru/lazyCSRF/blob/main/img/menu.png)

## How to Build

### intellij

If you use IntelliJ IDEA, you can build it by following `Build` → `Build Artifacts` → `LazyCSRF:jar` → `Build`.

### Command line

You can build it with maven.

```auto
$ mvn install

```

## LICENSE

MIT License

Copyright (C) 2021 tkmru

## GitHub:

> **[GitHub - tkmru/lazyCSRF: A more useful CSRF PoC generator on Burp Suite](https://github.com/tkmru/lazyCSRF)**
>
> A more useful CSRF PoC generator on Burp Suite
