Adobe Flash Player for Mac Installed

2011-05-16T00:00:00
ID MACOSX_FLASH_PLAYER_INSTALLED.NASL
Type nessus
Reporter Tenable
Modified 2018-07-30T00:00:00

Description

Adobe Flash Player for Mac is installed on the remote Mac OS X host.

                                        
                                            #TRUSTED 0c0994d032188c8b3e709885324d74e3156b3aa1f74eaa5465a81cf44eab9ccc70611e84113d2eb5e48d561379ceb39bc359620257499cfd91f28f7d371e5a29c54c1b7d2543c012ad437cb790ca128a3888985046a76f31d26cf6ccacf257ff5f3f6fc2c802433539f3338d87546523a6cf67601e7e8e558eca605510df1c698e05cc190cecc9e0363b44ac47205d64980d92428a0ba02793674f3fd836493854d3a3f813eca5f05d3881ca4375503d6f813aa363ee16ed29d67a717cb1d7b475bd5ff890b09c1acd41a6750f073cfc0e1d25126fd33f333b46192412b0ec6ba719204f7a6e180f0858d25d9f5c46f9194160537bb12dc9638dc9f1c8fe6c615b9c28f319c980bdb5ccfc2681eb620ef613077ba26ba0c025a4e50d9d02b986706c44c6f0a8bf4a87a9a3782ab194a22727dc34d0d825116b6af925ecc030064378ac63a28cc42c9c1ab7a5d469f64db7f0a97ad6c27a23a761a6792a7f0932efcda71413f32197dcb11acd4e58ca3ac7738b3f36de1a7915ac3a468d12bae1df7d1cc16a2746c14a3862349d9f50ef75f2b3256129b9b286cfef34f33e42e661686bc22aa6a2f0b6dfcdbe175a1950256d102102b4c7e229d06db8cea81afd2f17cbf45b04a1d357135e3fb18b492092bad60b1d92730fe731fe92311e3678e940f1352c7cd5c0625d393130d8b2921105637897ff7c95ca7e09fb39097953
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(53914);
  script_version("1.8");
  script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/30");

  script_name(english:"Adobe Flash Player for Mac Installed");
  script_summary(english:"Gets Flash Player version from Info.plist");

  script_set_attribute(attribute:"synopsis", value:
"The remote Mac OS X host contains a browser enhancement for displaying
multimedia content.");
  script_set_attribute(attribute:"description", value:"Adobe Flash Player for Mac is installed on the remote Mac OS X host.");
  script_set_attribute(attribute:"see_also", value:"http://www.adobe.com/products/flashplayer/");
  script_set_attribute(attribute:"solution", value:"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2011/05/16");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:adobe:flash_player");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X Local Security Checks");

  script_copyright(english:"This script is Copyright (C) 2011-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/MacOSX/packages");

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("ssh_func.inc");
include("macosx_func.inc");
include("audit.inc");
include("install_func.inc");

app = "Flash Player";

if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
  enable_ssh_wrappers();
else disable_ssh_wrappers();

packages = get_kb_item("Host/MacOSX/packages");
if (!packages) exit(0, "The 'Host/MacOSX/packages' KB item is missing.");

path = "/Library/Internet Plug-Ins/Flash Player.plugin";
plist = path + "/Contents/Info.plist";
cmd = string(
  "cat '", plist, "' | ",
  "grep -A 1 CFBundleShortVersionString | ",
  "tail -n 1 | ",
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\''
);
version = exec_cmd(cmd:cmd);
if (isnull(version)) exit(0, "Flash Player is not installed.");
if (version !~ "^[0-9]") exit(1, "Failed to get the version - '" + version + "'.");

set_kb_item(name:"MacOSX/Flash_Player/Path", value:path);
set_kb_item(name:"MacOSX/Flash_Player/Version", value:version);

register_install(
  app_name:app,
  path:path,
  version:version,
  cpe:"cpe:/a:adobe:flash_player");

report_installs(app_name:app);