Vulnerabilities > CVE-2008-3906 - Improper Input Validation vulnerability in multiple products

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
mono
mono-project
CWE-20
nessus
exploit available

Summary

CRLF injection vulnerability in Sys.Web in Mono 2.0 and earlier allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via CRLF sequences in the query string.

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Exploit-Db

descriptionMono 2.0 'System.Web' HTTP Header Injection Vulnerability. CVE-2008-3906. Remote exploit for linux platform
idEDB-ID:32303
last seen2016-02-03
modified2008-08-20
published2008-08-20
reporterJuraj Skripsky
sourcehttps://www.exploit-db.com/download/32303/
titleMono <= 2.0 - 'System.Web' HTTP Header Injection Vulnerability

Nessus

  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2008-210.NASL
    descriptionCRLF injection vulnerability in Sys.Web in Mono 2.0 and earlier allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via CRLF sequences in the query string. The updated packages have been patched to fix the issue. Update : This update was too late for inclusion in Mandriva Linux 2009, so it is being released now for that version.
    last seen2020-06-01
    modified2020-06-02
    plugin id37751
    published2009-04-23
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/37751
    titleMandriva Linux Security Advisory : mono (MDVSA-2008:210-1)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2008:210. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(37751);
      script_version ("1.12");
      script_cvs_date("Date: 2019/08/02 13:32:50");
    
      script_cve_id("CVE-2008-3906");
      script_xref(name:"MDVSA", value:"2008:210-1");
    
      script_name(english:"Mandriva Linux Security Advisory : mono (MDVSA-2008:210-1)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandriva Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "CRLF injection vulnerability in Sys.Web in Mono 2.0 and earlier allows
    remote attackers to inject arbitrary HTTP headers and conduct HTTP
    response splitting attacks via CRLF sequences in the query string.
    
    The updated packages have been patched to fix the issue.
    
    Update :
    
    This update was too late for inclusion in Mandriva Linux 2009, so it
    is being released now for that version."
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
      script_cwe_id(20);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:jay");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64mono-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64mono0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libmono-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libmono0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-bytefx-data-mysql");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-firebird");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-oracle");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-postgresql");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-sqlite");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-sybase");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-extras");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-ibm-data-db2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-jscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-locale-extras");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-nunit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-web");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-winforms");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2009.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/10/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/04/23");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2009-2019 Tenable Network Security, Inc.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK2009.0", reference:"jay-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", cpu:"x86_64", reference:"lib64mono-devel-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", cpu:"x86_64", reference:"lib64mono0-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", cpu:"i386", reference:"libmono-devel-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", cpu:"i386", reference:"libmono0-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-bytefx-data-mysql-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-data-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-data-firebird-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-data-oracle-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-data-postgresql-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-data-sqlite-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-data-sybase-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-doc-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-extras-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-ibm-data-db2-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-jscript-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-locale-extras-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-nunit-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-web-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2009.0", reference:"mono-winforms-1.9.1-5.1mdv2009.0", yank:"mdv")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-826-1.NASL
    descriptionIt was discovered that the XML HMAC signature system did not correctly check certain lengths. If an attacker sent a truncated HMAC, it could bypass authentication, leading to potential privilege escalation. (CVE-2009-0217) It was discovered that Mono did not properly escape certain attributes in the ASP.net class libraries which could result in browsers becoming vulnerable to cross-site scripting attacks when processing the output. With cross-site scripting vulnerabilities, if a user were tricked into viewing server output during a crafted server request, a remote attacker could exploit this to modify the contents, or steal confidential data (such as passwords), within the same domain. This issue only affected Ubuntu 8.04 LTS. (CVE-2008-3422) It was discovered that Mono did not properly filter CRLF injections in the query string. If a user were tricked into viewing server output during a crafted server request, a remote attacker could exploit this to modify the contents, steal confidential data (such as passwords), or perform cross-site request forgeries. This issue only affected Ubuntu 8.04 LTS. (CVE-2008-3906). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id40794
    published2009-08-27
    reporterUbuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2009-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/40794
    titleUbuntu 8.04 LTS / 8.10 / 9.04 : mono vulnerabilities (USN-826-1)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-826-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(40794);
      script_version("1.19");
      script_cvs_date("Date: 2019/08/02 13:33:02");
    
      script_cve_id("CVE-2008-3422", "CVE-2008-3906", "CVE-2009-0217");
      script_bugtraq_id(35671);
      script_xref(name:"USN", value:"826-1");
    
      script_name(english:"Ubuntu 8.04 LTS / 8.10 / 9.04 : mono vulnerabilities (USN-826-1)");
      script_summary(english:"Checks dpkg output for updated packages.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Ubuntu host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "It was discovered that the XML HMAC signature system did not correctly
    check certain lengths. If an attacker sent a truncated HMAC, it could
    bypass authentication, leading to potential privilege escalation.
    (CVE-2009-0217)
    
    It was discovered that Mono did not properly escape certain attributes
    in the ASP.net class libraries which could result in browsers becoming
    vulnerable to cross-site scripting attacks when processing the output.
    With cross-site scripting vulnerabilities, if a user were tricked into
    viewing server output during a crafted server request, a remote
    attacker could exploit this to modify the contents, or steal
    confidential data (such as passwords), within the same domain. This
    issue only affected Ubuntu 8.04 LTS. (CVE-2008-3422)
    
    It was discovered that Mono did not properly filter CRLF injections in
    the query string. If a user were tricked into viewing server output
    during a crafted server request, a remote attacker could exploit this
    to modify the contents, steal confidential data (such as passwords),
    or perform cross-site request forgeries. This issue only affected
    Ubuntu 8.04 LTS. (CVE-2008-3906).
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Ubuntu security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/826-1/"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_cwe_id(20, 79);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-accessibility1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-accessibility2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-bytefx0.7.6.1-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-bytefx0.7.6.2-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-c5-1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-cairo1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-cairo2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-corlib1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-corlib2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-corlib2.1-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-cscompmgd7.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-cscompmgd8.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-data-tds1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-data-tds2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-data1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-data2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-db2-1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-firebirdsql1.7-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-getoptions1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-getoptions2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-i18n1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-i18n2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-ldap1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-ldap2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-microsoft-build2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-microsoft7.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-microsoft8.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-mozilla0.1-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-mozilla0.2-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-npgsql1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-npgsql2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-nunit2.2-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-oracle1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-oracle2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-peapi1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-peapi2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-posix1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-posix2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-relaxng1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-relaxng2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-security1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-security2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-sharpzip0.6-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-sharpzip0.84-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-sharpzip2.6-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-sharpzip2.84-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-sqlite1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-sqlite2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-data1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-data2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-ldap1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-ldap2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-messaging1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-messaging2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-runtime1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-runtime2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-web1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system-web2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-system2.1-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-webbrowser0.5-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-winforms1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono-winforms2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono0-dbg");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono1.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libmono2.0-cil");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-1.0-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-1.0-gac");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-1.0-runtime");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-1.0-service");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-2.0-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-2.0-gac");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-2.0-runtime");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-2.0-service");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-dbg");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-gac");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-gmcs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-jay");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-jit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-jit-dbg");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-mcs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-mjs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-runtime");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-smcs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-utils");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:mono-xbuild");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:prj2make-sharp");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:8.04:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:8.10");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:9.04");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2009/08/26");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/08/27");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2009-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! ereg(pattern:"^(8\.04|8\.10|9\.04)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 8.04 / 8.10 / 9.04", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-accessibility1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-accessibility2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-bytefx0.7.6.1-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-bytefx0.7.6.2-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-c5-1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-cairo1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-cairo2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-corlib1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-corlib2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-corlib2.1-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-cscompmgd7.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-cscompmgd8.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-data-tds1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-data-tds2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-db2-1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-dev", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-firebirdsql1.7-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-i18n1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-i18n2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-ldap1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-ldap2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-microsoft-build2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-microsoft7.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-microsoft8.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-mozilla0.1-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-npgsql1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-npgsql2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-oracle1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-oracle2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-peapi1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-peapi2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-relaxng1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-relaxng2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-security1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-security2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-sharpzip0.6-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-sharpzip0.84-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-sharpzip2.6-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-sharpzip2.84-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-sqlite1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-sqlite2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-data1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-data2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-ldap1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-ldap2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-messaging1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-messaging2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-runtime1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-runtime2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-web1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system-web2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-system2.1-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-winforms1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono-winforms2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono0", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono0-dbg", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono1.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"libmono2.0-cil", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-1.0-devel", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-1.0-service", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-2.0-devel", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-2.0-service", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-common", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-dbg", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-gac", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-gmcs", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-jay", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-jit", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-jit-dbg", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-mcs", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-mjs", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-runtime", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-smcs", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-utils", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"mono-xbuild", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.04", pkgname:"prj2make-sharp", pkgver:"1.2.6+dfsg-6ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-accessibility1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-accessibility2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-bytefx0.7.6.1-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-bytefx0.7.6.2-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-c5-1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-cairo1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-cairo2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-corlib1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-corlib2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-corlib2.1-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-cscompmgd7.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-cscompmgd8.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-data-tds1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-data-tds2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-db2-1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-dev", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-firebirdsql1.7-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-i18n1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-i18n2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-ldap1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-ldap2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-microsoft-build2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-microsoft7.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-microsoft8.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-mozilla0.2-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-npgsql1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-npgsql2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-nunit2.2-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-oracle1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-oracle2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-peapi1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-peapi2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-relaxng1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-relaxng2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-security1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-security2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-sharpzip0.6-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-sharpzip0.84-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-sharpzip2.6-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-sharpzip2.84-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-sqlite1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-sqlite2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-data1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-data2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-ldap1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-ldap2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-messaging1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-messaging2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-runtime1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-runtime2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-web1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system-web2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-system2.1-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-winforms1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono-winforms2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono0", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono0-dbg", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono1.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"libmono2.0-cil", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-1.0-devel", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-1.0-service", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-2.0-devel", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-2.0-service", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-common", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-dbg", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-gac", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-gmcs", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-jay", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-jit", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-jit-dbg", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-mcs", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-mjs", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-runtime", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-smcs", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-utils", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"mono-xbuild", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"8.10", pkgname:"prj2make-sharp", pkgver:"1.9.1+dfsg-4ubuntu2.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-accessibility1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-accessibility2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-bytefx0.7.6.1-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-bytefx0.7.6.2-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-c5-1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-cairo1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-cairo2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-corlib1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-corlib2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-corlib2.1-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-cscompmgd7.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-cscompmgd8.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-data-tds1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-data-tds2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-data1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-data2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-db2-1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-dev", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-firebirdsql1.7-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-getoptions1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-getoptions2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-i18n1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-i18n2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-ldap1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-ldap2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-microsoft-build2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-microsoft7.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-microsoft8.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-npgsql1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-npgsql2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-nunit2.2-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-oracle1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-oracle2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-peapi1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-peapi2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-posix1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-posix2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-relaxng1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-relaxng2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-security1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-security2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-sharpzip0.6-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-sharpzip0.84-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-sharpzip2.6-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-sharpzip2.84-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-sqlite1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-sqlite2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-data1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-data2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-ldap1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-ldap2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-messaging1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-messaging2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-runtime1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-runtime2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-web1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system-web2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-system2.1-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-webbrowser0.5-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-winforms1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono-winforms2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono0", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono0-dbg", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono1.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"libmono2.0-cil", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-1.0-devel", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-1.0-gac", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-1.0-runtime", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-1.0-service", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-2.0-devel", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-2.0-gac", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-2.0-runtime", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-2.0-service", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-common", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-dbg", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-devel", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-gac", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-gmcs", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-jay", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-jit", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-jit-dbg", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-mcs", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-mjs", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-runtime", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-smcs", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-utils", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"mono-xbuild", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    if (ubuntu_check(osver:"9.04", pkgname:"prj2make-sharp", pkgver:"2.0.1-4ubuntu0.1")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libmono-accessibility1.0-cil / libmono-accessibility2.0-cil / etc");
    }
    
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2009-322.NASL
    descriptionMultiple vulnerabilities has been found and corrected in mono : IOActive Inc. found a buffer overflow in Mono.Math.BigInteger class in Mono 1.2.5.1 and previous versions, which allows arbitrary code execution by context-dependent attackers (CVE-2007-5197). Multiple cross-site scripting (XSS) vulnerabilities in the ASP.net class libraries in Mono 2.0 and earlier allow remote attackers to inject arbitrary web script or HTML via crafted attributes related to (1) HtmlControl.cs (PreProcessRelativeReference), (2) HtmlForm.cs (RenderAttributes), (3) HtmlInputButton (RenderAttributes), (4) HtmlInputRadioButton (RenderAttributes), and (5) HtmlSelect (RenderChildren) (CVE-2008-3422). CRLF injection vulnerability in Sys.Web in Mono 2.0 and earlier allows remote attackers to inject arbitrary HTTP headers and conduct HTTP response splitting attacks via CRLF sequences in the query string (CVE-2008-3906). The XML HMAC signature system did not correctly check certain lengths. If an attacker sent a truncated HMAC, it could bypass authentication, leading to potential privilege escalation (CVE-2009-0217). Packages for 2008.0 are provided for Corporate Desktop 2008.0 customers The updated packages have been patched to fix these issues.
    last seen2020-06-01
    modified2020-06-02
    plugin id43041
    published2009-12-08
    reporterThis script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/43041
    titleMandriva Linux Security Advisory : mono (MDVSA-2009:322)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2009:322. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(43041);
      script_version("1.19");
      script_cvs_date("Date: 2019/08/02 13:32:52");
    
      script_cve_id("CVE-2007-5197", "CVE-2008-3422", "CVE-2008-3906", "CVE-2009-0217");
      script_bugtraq_id(26279, 35671);
      script_xref(name:"MDVSA", value:"2009:322");
    
      script_name(english:"Mandriva Linux Security Advisory : mono (MDVSA-2009:322)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandriva Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Multiple vulnerabilities has been found and corrected in mono :
    
    IOActive Inc. found a buffer overflow in Mono.Math.BigInteger class in
    Mono 1.2.5.1 and previous versions, which allows arbitrary code
    execution by context-dependent attackers (CVE-2007-5197).
    
    Multiple cross-site scripting (XSS) vulnerabilities in the ASP.net
    class libraries in Mono 2.0 and earlier allow remote attackers to
    inject arbitrary web script or HTML via crafted attributes related to
    (1) HtmlControl.cs (PreProcessRelativeReference), (2) HtmlForm.cs
    (RenderAttributes), (3) HtmlInputButton (RenderAttributes), (4)
    HtmlInputRadioButton (RenderAttributes), and (5) HtmlSelect
    (RenderChildren) (CVE-2008-3422).
    
    CRLF injection vulnerability in Sys.Web in Mono 2.0 and earlier allows
    remote attackers to inject arbitrary HTTP headers and conduct HTTP
    response splitting attacks via CRLF sequences in the query string
    (CVE-2008-3906).
    
    The XML HMAC signature system did not correctly check certain lengths.
    If an attacker sent a truncated HMAC, it could bypass authentication,
    leading to potential privilege escalation (CVE-2009-0217).
    
    Packages for 2008.0 are provided for Corporate Desktop 2008.0
    customers
    
    The updated packages have been patched to fix these issues."
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_cwe_id(20, 79, 119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:jay");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64mono-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64mono0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libmono-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libmono0");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-bytefx-data-mysql");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-firebird");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-oracle");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-postgresql");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-sqlite");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-data-sybase");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-extras");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-ibm-data-db2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-jscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-locale-extras");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-nunit");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-web");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:mono-winforms");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2008.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2009/12/07");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/12/08");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK2008.0", reference:"jay-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"x86_64", reference:"lib64mono-devel-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"x86_64", reference:"lib64mono0-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"i386", reference:"libmono-devel-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"i386", reference:"libmono0-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-bytefx-data-mysql-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-data-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-data-firebird-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-data-oracle-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-data-postgresql-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-data-sqlite-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-data-sybase-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-doc-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-extras-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-ibm-data-db2-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-jscript-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-locale-extras-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-nunit-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-web-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"mono-winforms-1.2.5-2.1mdv2008.0", yank:"mdv")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");