Skip to content
Projects

BlackFan/content-type-research

View on GitHub

BlackFan/content-type-research has 671 GitHub stars and 65 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 22:29 UTC. Last push 2025-06-29.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

Content-Type Research

Developer Tools

README.md

Original

Content-Type Research

XSS

Content-Type that can be used for XSS and some related tricks

CSRF

All frameworks were analyzed with disabled default token-based CSRF protection

Examples of incorrect Content-Type parsing that can be used for CSRF.
For example, the ability to send an HTTP request that will be interpreted as JSON without a CORS preflight request.
Can be used in combination with attacks requiring boolean or array in HTTP request (PHP Type Juggling, NoSQL Injection, Prototype Pollution, ...)

Interesting results

WAF Bypass

Basic Idea

HTTP Request Application WAF Result
Content-Type: application/x-www-form-urlencoded

q=' union select '1
' union select 1' ' union select 1' :heavy_minus_sign: Blocked
Content-Type: application/json

{"q":"' \u0075nion \u0073elect '1"}
' union select 1' ' union select 1' :heavy_minus_sign: Blocked
Content-Type: application/x-www-form-urlencoded;/json

{"q":"' \u0075nion \u0073elect '1"}
' union select 1' {"q":"' \u0075nion \u0073elect '1"} :heavy_check_mark: Bypass

Interesting results

Programming languages / Frameworks

Name CSRF friendly WAF Bypass friendly
PHP :heavy_check_mark:
Laravel :heavy_check_mark: :heavy_check_mark:
Symfony :heavy_check_mark:
Laminas, Mezzio, Zend :heavy_check_mark: :heavy_check_mark:
Yii :question:
Wordpress :question: :question:
CakePHP :question: :question:
CodeIgniter :question: :question:
Django :question: :heavy_check_mark:
Flask :heavy_check_mark:
CherryPy :heavy_check_mark:
Express body-parser
Express multer :heavy_check_mark:
Rails :heavy_check_mark: