Skip to content

How to filter in multipart/form-data #2377

Closed
@gitQuestions

Description

@gitQuestions

Hello all,

I am fixing "Comments -wpDiscuz 7.0.0 - 7.0.4 - Unauthenticated Arbitrary File Upload" vulnerability.

Here, an attacker could upload an infected php file in an upload image field. I would like to make a rule which could filter and look for legit files.

But the problem is when I have to look into multipart/form-data parameters (like in the image attach.) where I would like to obtain the "filename", "Content-Type" of "wmu_files" parameter. to do that.

Is it possible?
ScreenS

Metadata

Metadata

Assignees

Labels

3.xRelated to ModSecurity version 3.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions