PerfreeBlog icon indicating copy to clipboard operation
PerfreeBlog copied to clipboard

There are arbitrary file uploads where ordinary users upload avatars

Open N-Next opened this issue 2 years ago • 0 comments

Affected versions:v3.1.1

The steps to reproduce

Register an ordinary user arbitrarily, and upload the avatar image The front-end restricts the file type, and can only upload image-type files You can modify the suffix of the malicious file to jpg and then modify it back through packet capture image

repair suggestion

-The backend increases the inspection of file types and uses whitelist filtering

  • Filter with blacklist

N-Next avatar Mar 01 '23 02:03 N-Next