CVE-2023-50263

Nautobot is a Network Source of Truth and Network Automation Platform built as a web application atop the Django Python framework with a PostgreSQL or MySQL database. In Nautobot 1.x and 2.0.x prior to 1.6.7 and 2.0.6, the URLs `/files/get/?name=...` and `/files/download/?name=...` are used to provide admin access to files that have been uploaded as part of a run request for a Job that has FileVar inputs. Under normal operation these files are ephemeral and are deleted once the Job in question runs. In the default implementation used in Nautobot, as provided by `django-db-file-storage`, these URLs do not by default require any user authentication to access; they should instead be restricted to only users who have permissions to view Nautobot's `FileProxy` model instances. Note that no URL mechanism is provided for listing or traversal of the available file `name` values, so in practice an unauthenticated user would have to guess names to discover arbitrary files for download, but if a user knows the file name/path value, they can access it without authenticating, so we are considering this a vulnerability. Fixes are included in Nautobot 1.6.7 and Nautobot 2.0.6. No known workarounds are available other than applying the patches included in those versions.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:networktocode:nautobot:*:*:*:*:*:*:*:*
cpe:2.3:a:networktocode:nautobot:*:*:*:*:*:*:*:*

History

18 Dec 2023, 18:05

Type Values Removed Values Added
CPE cpe:2.3:a:networktocode:nautobot:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : 3.7
v2 : unknown
v3 : 5.3
First Time Networktocode
Networktocode nautobot
Summary
  • (es) Nautobot es una plataforma de automatización de redes y fuente de verdad de red creada como una aplicación web sobre el framework Django Python con una base de datos PostgreSQL o MySQL. En Nautobot 1.x y 2.0.x anteriores a 1.6.7 y 2.0.6, se utilizan las URL `/files/get/?name=...` y `/files/download/?name=...` para proporcionar acceso de administrador a los archivos que se han cargado como parte de una solicitud de ejecución para un trabajo que tiene entradas FileVar. En condiciones normales de funcionamiento, estos archivos son efímeros y se eliminan una vez que se ejecuta el trabajo en cuestión. En la implementación predeterminada utilizada en Nautobot, proporcionada por `django-db-file-storage`, estas URL no requieren de forma predeterminada ninguna autenticación de usuario para acceder; en su lugar, deberían restringirse únicamente a los usuarios que tengan permisos para ver las instancias del modelo `FileProxy` de Nautobot. Tenga en cuenta que no se proporciona ningún mecanismo de URL para enumerar o recorrer los valores de "nombre" de archivos disponibles, por lo que en la práctica un usuario no autenticado tendría que adivinar nombres para descubrir archivos arbitrarios para descargar, pero si un usuario conoce el nombre del archivo/valor de ruta, pueden acceder a él sin autenticarse, por lo que consideramos esto una vulnerabilidad. Las correcciones se incluyen en Nautobot 1.6.7 y Nautobot 2.0.6. No hay workarounds disponibles aparte de aplicar los parches incluidos en esas versiones.
CWE CWE-306
References () https://github.com/nautobot/nautobot/commit/458280c359a4833a20da294eaf4b8d55edc91cee - () https://github.com/nautobot/nautobot/commit/458280c359a4833a20da294eaf4b8d55edc91cee - Patch
References () https://github.com/nautobot/nautobot/commit/7c4cf3137f45f1541f09f2f6a7f8850cd3a2eaee - () https://github.com/nautobot/nautobot/commit/7c4cf3137f45f1541f09f2f6a7f8850cd3a2eaee - Patch
References () https://github.com/nautobot/nautobot/pull/4959 - () https://github.com/nautobot/nautobot/pull/4959 - Patch
References () https://github.com/nautobot/nautobot/pull/4964 - () https://github.com/nautobot/nautobot/pull/4964 - Patch
References () https://github.com/nautobot/nautobot/security/advisories/GHSA-75mc-3pjc-727q - () https://github.com/nautobot/nautobot/security/advisories/GHSA-75mc-3pjc-727q - Patch, Vendor Advisory
References () https://github.com/victor-o-silva/db_file_storage/blob/master/db_file_storage/views.py - () https://github.com/victor-o-silva/db_file_storage/blob/master/db_file_storage/views.py - Product

12 Dec 2023, 23:15

Type Values Removed Values Added
New CVE

Information

Published : 2023-12-12 23:15

Updated : 2023-12-18 18:05


NVD link : CVE-2023-50263

Mitre link : CVE-2023-50263

CVE.ORG link : CVE-2023-50263


JSON object : View

Products Affected

networktocode

  • nautobot
CWE
CWE-306

Missing Authentication for Critical Function

CWE-200

Exposure of Sensitive Information to an Unauthorized Actor