Lucene search
+L

Django Open Redirection Vulnerability

🗓️ 07 Apr 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 42 Views

Django Open Redirection Vulnerability, Versions prior to 1.10.7, 1.9.13, and 1.8.18 affecte

Related
Refs
Code
# SPDX-FileCopyrightText: 2017 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:djangoproject:django";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.107142");
  script_version("2023-07-25T05:05:58+0000");
  script_tag(name:"last_modification", value:"2023-07-25 05:05:58 +0000 (Tue, 25 Jul 2023)");
  script_tag(name:"creation_date", value:"2017-04-07 16:31:00 +0200 (Fri, 07 Apr 2017)");
  script_cve_id("CVE-2017-7234");

  script_tag(name:"cvss_base", value:"5.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:N");
  script_tag(name:"severity_vector", value:"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2017-11-04 01:29:00 +0000 (Sat, 04 Nov 2017)");

  script_tag(name:"qod_type", value:"remote_banner_unreliable");
  script_name("Django Open Redirection Vulnerability");
  script_tag(name:"summary", value:"Django is prone to an open-redirection vulnerability because it fails to properly sanitize user-supplied input.");
  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"impact", value:"An attacker can leverage this issue by constructing a crafted URI and enticing a user to follow it.
  When an unsuspecting victim follows the link, they may be redirected to an attacker-controlled site. This may aid in phishing attacks. Other attacks are also possible.");

  script_tag(name:"affected", value:"Versions prior to Django 1.10.7, 1.9.13, and 1.8.18 are vulnerable");

  script_tag(name:"solution", value:"Updates are available. Please see the references or vendor advisory for more information.");

  script_xref(name:"URL", value:"http://www.debian.org/security/2017/dsa-3835");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/97401");
  script_xref(name:"URL", value:"https://www.djangoproject.com/weblog/2017/apr/04/security-releases/");

  script_tag(name:"solution_type", value:"VendorFix");

  script_category(ACT_GATHER_INFO);

  script_copyright("Copyright (C) 2017 Greenbone AG");

  script_family("General");

  script_dependencies("gb_django_detect_lin.nasl");
  script_mandatory_keys("Django/Linux/Ver");

  exit(0);

}

include("version_func.inc");
include("host_details.inc");

Ver = get_app_version(cpe: CPE);

if(!Ver) exit(0);

if (Ver =~ "^1\.10\.")
{
  if(version_is_less(version: Ver, test_version:"1.10.7"))
  {
    fix = "1.10.7";
    VULN = TRUE;
  }
}

if (Ver =~ "^1\.9\.")
{
  if(version_is_less(version: Ver, test_version:"1.9.13"))
  {
    fix = "1.9.13";
    VULN = TRUE;
  }
}

if (Ver =~ "^1\.8\.")
{
  if(version_is_less(version: Ver, test_version:"1.8.18"))
  {
    fix = "1.8.18";
    VULN = TRUE;
  }
}

if (VULN)
{
  report = report_fixed_ver(installed_version:Ver, fixed_version:fix);
  security_message(port:0, data:report);
  exit(0);
}

exit(99);

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

25 Jul 2023 00:00Current
6.5Medium risk
Vulners AI Score6.5
CVSS 25.8
CVSS 36.1
EPSS0.0183
42