Lucene search
K

Supersedence Data Builder

🗓️ 24 May 2022 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 46 Views

Supersedence Data Builder collects and stores supersedence patch dat

Code
#TRUSTED 5ab90df929b5ca27d7e97c5e069253534a72898033b32349436bcac099d9b4d2054bfb16cf89f13c03593973e4f801982d5527b59c3ac419d17d0bdb406a789780d2c0e613ef541158175583477a3be9c450f7e3b681c59907f576aec84623dfcf6d59f6c9a70bd59608cc612eaa7f77abf456fb5c102e1dc940f33ae689eec0c5c0d2c02b1364b5efc9755e7162960e281fc6cee7c4b4e1596fd26b50eea09b902d5650bab87cbdbcd6809be810d23562cd0dcd5302c7a62ba223321a60ed41f64a8d06114ad3c0a89ecdff52231432a03331307458abdf1ebe738a5d7c1d940e35adaededacc4e86948b88cff20c9ad1cc4df95df52461bc88bed044c75919a155f20d78a1bf4b74c4d1df9c0ac96219b8c3c2c3b0c45ff4fef73ec1662f193bf96ba1e5ab5b80756bf60b5beafd9b5c921bd5637476198376495f64d8be9f0d577c7eeb75693d6b79a9ebed12d2128237f5d94b0c2aba9bcd622ade36566908cf800b710d877f8f5058d56dd82cf882b5938e0e0333d958a749a5d1c05ebe93312167a7519b6e4c7112658ada014995b286ce07035afb0ba50d284f1f36157fce0c362712cd26762ec9067d6a977ba89c9e1459a7d54eb1836cabcfc9aa6a0b4d913399093fc6e02293d7becff28c7b176140e4d845432e19fe859e1945b56969026ddc20e210fd59b17dcec215d4b6d0126ff8ff089a4de4ef8a8929220a
#TRUST-RSA-SHA256 4207f09e194a00988e680369a38d3216bf6773e556118704e6c938c072a06da813193ffc18aaa825683453b70277fa92ea886ae6d993588a68d0d339389a826a57491355986aaea48243a56cbf52e6d8ca89689b28f7870a418eba4d21fb244e414b88c02bacfdaa3a149eda61f593a5455fe0813ee47bf6e0d46c6dce4078f27fb8c72455e2a908313cb179f65d10fd31de7d87312e8c54b77b14d63aed20bcd3636748aac016fe964c2ed5b04e3ab833f1ef6bbef232b6b4dba692391755143c6c9ecfb10f8727a451ba2f34d0468c90f44fa6b2f502d7af0b457cea6b444d50b0d565ce8b355d54d7f90476bdfc68142e1f3ffd26546cb066683b1c92b1c037f12b3595da30afbe566736c8bbe166bee2b174a9cfffadc959cfdf3bc90e5504c2676d548f5375f7decf7055fec614060be68ea35b39a5abd6913c9488eb91f6909badf36d62f67bdaeb6b564957c4e1e40502b2a93fa62e754159ce358f16ffc93b452fd88a291f33a84c9994d44d3e7c6ca6ef69ecabcc20dbfce0b3af71ab95c792125d4d3a21527424cf7785ec328b0178aca891fcffbede6f4a84e611b2dbc716474e0739127a172e00b689e29834d7c45143b4512e671875e898965eb91ba7dda6853f1b1f0b0316d8f06219349e2170de83960cbb9194b6b94ed5e4fa4fab150c7c811a0202f54488d1f9f51feea6b45dde9fc4735c32eeb44693a6

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(161455);
  script_version("1.9");
  script_set_attribute(attribute:"plugin_modification_date", value:"2025/07/14");

  script_name(english:"Supersedence Data Builder");
  script_summary(english:"Builds a table of supersedence data used to determine what is reported.");

  script_set_attribute(attribute:"synopsis", value:"Supersedence data.");
  script_set_attribute(attribute:"description", value:
  "Collects and stores supersedence patch data for various patch types.");
  script_set_attribute(attribute:"solution", value:"N/A");

  script_set_attribute(attribute:"risk_factor", value:"None");
  script_set_attribute(attribute:"plugin_publication_date", value:"2022/05/24");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_end_attributes();
  script_category(ACT_END2);
  script_copyright(english:"This script is Copyright (C) 2022-2025 and is owned by Tenable, Inc. or an Affiliate thereof.");
  script_family(english:"General");
  script_exclude_keys("Host/dead");

  exit(0);
}

include('supersedence_builder.inc');

if (get_kb_item("Host/dead"))
  exit(0, "The remote host was found to be dead.");

if (!can_query_report())
  exit(1, 'Can\'t run query_report().');

if (!supersedence::any_patch_types_available())
  exit(0, "No supported patch types found.");

var DEBUG = get_kb_item('global_settings/enable_plugin_debugging');
var found_patch_data = FALSE;
var report = 'Supersedence patch data summary :\n';
var cnt;

# Gather and store patch supersedence data for each patch type.
foreach var patch_type (keys(supersedence::patch_types))
{
  spad_log(name: supersedence::log_name, message:'Gather and store ' + patch_type +' patch supersedence data.');
  if (is_function(supersedence::patch_data_functions[patch_type]))
  {
    cnt = supersedence::patch_data_functions[patch_type](type: patch_type);
    if (cnt)
    {
      found_patch_data = TRUE;
      spad_log(name: supersedence::log_name, message:'Inserted ' + cnt + ' ' + patch_type + ' patches.');
    }
    else
    {
      spad_log(name: supersedence::log_name, message:'No ' + patch_type + ' values found.');
    }
    report += '  - ' + patch_type + ' : ' + cnt + '\n';
  }
  else
  {
    spad_log(name: supersedence::log_name, message:'Patch type (' + patch_type + ') data function not defined.');
  }
}

if(!found_patch_data)
{
  report = 'No patch supersedence data found.';
}

if (DEBUG)
{
  var log = spad_log_get_script_report_attachment(name: supersedence::log_name);

  if (!isnull(log))
  {
    report += '\n\nPlugin debug log has been attached.';
    security_report_with_attachments(
      port        : 0,
      level       : 0,
      extra       : report,
      attachments : log
    );
    exit(0);
  }
  else
  {
    report += '\n\nUnable to retrieve plugin debug log "' + supersedence::log_name + '".';
    security_report_v4(severity:SECURITY_NOTE, port:0, extra:report);
  }
}

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

14 Jul 2025 00:00Current
7High risk
Vulners AI Score7
46