0xd00 随笔小记

Back

[CVE-2025-6534] Arbitrary File DeletionBlur image

Abstract#

The remove endpoint in FileController.java is vulnerable to an Insecure Direct Object Reference (IDOR) attack due to missing authorization. The function accepts a file id for deletion but fails to verify if the currently authenticated user is the owner of the file. As a result, any authenticated user can delete any file stored in the system by simply knowing or guessing its id. The intended permission check @RequiresPermissions is notably commented out in the source code, making the vulnerability explicit.

Vulnerability Details#

1. Affected Product Information

  • Product Name: novel-plus
  • Repository URL: https://github.com/201206030/novel-plus
  • Affected Component: novel-admin/src/main/java/com/java2nb/common/controller/FileController.java:114-131
  • Affected Version: v5.1.3
  • Vulnerability Type: Improper Authorization
  • CWE (Common Weakness Enumeration): CWE-862 (Missing Authorization), CWE-285 (Improper Authorization)
  • Affected Code Snippet:

POC#

image-20250613144959041

image-20250613144822682

image-20250613145201534

[CVE-2025-6534] Arbitrary File Deletion
https://blog.0xd00.com/blog/missing-authorization-leads-to-arbitrary-file-deletion
Author 0xd00
Published at 2025年6月13日
Comment seems to stuck. Try to refresh?✨