BlackFan/content-type-research
BlackFan/content-type-research has 672 GitHub stars and 65 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-24 05:23 UTC. Last push 2025-06-29.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Content-Type Research
개발 도구README.md
OriginalContent-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
- Difference of Content-Type processing in browsers
- Laravel JSON Content-Type parsing
- Laminas, Mezzio, Zend Framework JSON Content-Type parsing
- Wordpress JSON Content-Type parsing
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
- PHP multipart boundary parsing
- Laravel JSON Content-Type parsing
- Symfony JSON/XML Content-Type parsing
- Laminas, Mezzio, Zend Framework JSON Content-Type parsing
- Flask JSON Content-Type parsing
- CherryPy multipart & JSON Content-Type parsing
- Express multer multipart Content-Type parsing
- Rails multipart & JSON Content-Type parsing
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: |
관련 프로젝트 살펴보기
불러오는 중…