Exploits / Vulnerability Discovered : 2021-01-06 |
Type : local |
Platform : python
This exploit / vulnerability Dirsearch 0.4.1 csv injection is for educational purposes only and if it is used you will do on your own risk!
dirsearch, when used with the --csv-report flag, writes the results of crawled endpoints which redirect(, to a csv file without sanitization.
A malicious server can redirect all of its routes/paths to a path that contains a comma and formula, e.g. /test,=1336+1, and escape the normal dirsearch CSV structure to inject its own formula.
Malicious Flask Webserver:
"""
from flask import Flask, redirect
app = Flask(__name__)