CVE-2020-25540: ThinkAdmin directory traversal vulnerability

zoujingli/thinkadmin Updated 02 Oct 2025

Summary

24/05/2022
No i
High
7.5

CVE-2020-25540: ThinkAdmin directory traversal vulnerability. Affects zoujingli/thinkadmin versions 6.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

ThinkAdmin is a package available on Packagist that provides administrative functionality for web applications. It allows users to manage various aspects of their application, such as user accounts, permissions, and data. However, ThinkAdmin v6 is vulnerable to a directory traversal attack, which can be exploited by unauthorized attackers to read arbitrary files on a remote server. This vulnerability is identified as CVE-2020-25540.

Vulnerability Detail

The directory traversal vulnerability in ThinkAdmin v6 allows an attacker to bypass file access restrictions and read files outside of the intended directory. By sending a specially crafted GET request with an encoded parameter, an attacker can traverse the file system and access sensitive files on the server. This can lead to unauthorized disclosure of sensitive information, such as configuration files, source code, or user data. The severity of this vulnerability is rated as HIGH with a CVSS score of 7.5.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can implement input validation and sanitization to prevent directory traversal attacks. This can be done by checking user input for any characters that could be used to traverse directories, such as '../' or '%2e%2e/'. By blocking or removing these characters from user input, the risk of a successful directory traversal attack can be mitigated.

Conclusion

ThinkAdmin v6 is vulnerable to a directory traversal attack, allowing unauthorized attackers to read arbitrary files on a remote server. It is crucial to update ThinkAdmin to a patched version and implement input validation to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for zoujingli/thinkadmin →

Share this vulnerability

FAQ

ThinkAdmin is a package available on Packagist that provides administrative functionality for web applications.

A directory traversal vulnerability allows an attacker to access files outside of the intended directory by manipulating input parameters or file paths.

An attacker can exploit this vulnerability by sending a specially crafted GET request with an encoded parameter to traverse the file system and read arbitrary files on the server.

This vulnerability can lead to unauthorized disclosure of sensitive information, such as configuration files, source code, or user data.

To protect your application, it is recommended to update ThinkAdmin to a patched version and implement input validation and sanitization to prevent directory traversal attacks.

Related vulnerabilities

Recent vulnerabilities recorded for zoujingli/thinkadmin.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback