Skip to content

There is a file upload vulnerability in src/main/java/org/zdd/bookstore/web/controller/admin/AdminBookController.java #19

Description

@liyunqiangs

This project allows users to upload pictures when adding the book function. However,this function does not perform any checks on the files uploaded by users,which leads to the possibility of users uploading malicious files such as jsp files and image Trojans.

Image Image

When adding a new book,click on the "Upload" button and upload the JSP Trojan file.

Image

It can be seen that the JSP file has been uploaded to the "upload/image" directory on the server backend.

Image

Search for the keyword "admin" on the homepage and click to enter the detailed page.

Image

Right-click on the icon to open the picture,and it will show that the Trojan has been executed.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions