InfoSec Write-ups
Read post

How I Found a High-Severity Directory Traversal in Flask-Admin

A security researcher discovered a high-severity directory traversal vulnerability in Flask-Admin's FileAdmin component by reviewing source code. The flaw stems from using Python's startswith() string method to validate filesystem paths — a check that fails when sibling directories share a common prefix (e.g., /data/uploads and /data/uploads_secret). All FileAdmin operations (download, upload, rename, delete, create directory) relied on this flawed is_in_folder() check, meaning the configured root directory boundary could be bypassed entirely. The researcher confirmed the bug with a local test environment using curl --path-as-is, documented it, and submitted via GitHub Security Advisories — only to find it had already been reported as a duplicate.

    #python#vulnerability
Yesterday•5m read time•From infosecwriteups.com
Post cover image
Table of contents
Table of Contents1.Choosing the Target2.Reading the Code3.A Small TestGet Aruvasaga chithan A ’s stories in your inbox4.Building a Test Environment5.Testing the Application6.It Wasn’t Just File Read7.Understanding the Root Cause8.Responsible Disclosure9.Final Thoughts
70 Impressions
InfoSec Write-ups's image
InfoSec Write-ups

InfoSecWriteUps' platform is dedicated to providing insights and resources for cybersecurity profes...

977 Followers

•

4.1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard