search
HomeOperation and MaintenanceSafetyHow to reproduce arbitrary file download vulnerability in Webug shooting range

Brief description of the vulnerability:

Due to business needs, some websites may provide file viewing or downloading functions. If there are no restrictions on the files that users can view or download, then malicious users can You can view or download some sensitive files, such as configuration information, source code files, etc.

Cause of vulnerability:

There is a function to read files

Read The path of the file is user-controllable and has not been verified or the verification is not strict

The file content is output

Vulnerability hazard:

Download arbitrary files from the server , such as script code, services and system configuration files, etc., to further use the obtained information to cause greater harm.

The obtained code can be further audited to obtain more exploitable vulnerabilities

Experimental environment: webug shooting range

How to reproduce arbitrary file download vulnerability in Webug shooting range

Homepage

How to reproduce arbitrary file download vulnerability in Webug shooting range

BP packet capture

How to reproduce arbitrary file download vulnerability in Webug shooting range

We change the path of the url to and send it to the repeater module

How to reproduce arbitrary file download vulnerability in Webug shooting range

How to reproduce arbitrary file download vulnerability in Webug shooting range

Read the code under the repeater module send

How to reproduce arbitrary file download vulnerability in Webug shooting range

Put the package and see if it can be downloaded

How to reproduce arbitrary file download vulnerability in Webug shooting range

Download it and audit it

How to reproduce arbitrary file download vulnerability in Webug shooting range

Found a path

How to reproduce arbitrary file download vulnerability in Webug shooting range

Download it using the above method

How to reproduce arbitrary file download vulnerability in Webug shooting range

How to reproduce arbitrary file download vulnerability in Webug shooting range

Find dbConn.php, front There is also a DATAPATH

This may be a folder name

Let’s try it

How to reproduce arbitrary file download vulnerability in Webug shooting range

No response, there must be no such folder

Changed to data

How to reproduce arbitrary file download vulnerability in Webug shooting range

How to reproduce arbitrary file download vulnerability in Webug shooting range

and found dbConfig.php

How to reproduce arbitrary file download vulnerability in Webug shooting range

Download

How to reproduce arbitrary file download vulnerability in Webug shooting range

How to reproduce arbitrary file download vulnerability in Webug shooting range

Discover database password

How to reproduce arbitrary file download vulnerability in Webug shooting range

The above is the detailed content of How to reproduce arbitrary file download vulnerability in Webug shooting range. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:亿速云. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.