Fedora 25 : php-PHPMailer (2016-6941d25875) - Nessus
Critical Plugin ID: 96319This page contains detailed information about the Fedora 25 : php-PHPMailer (2016-6941d25875) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 96319
Name: Fedora 25 : php-PHPMailer (2016-6941d25875)
Filename: fedora_2016-6941d25875.nasl
Vulnerability Published: 2016-12-30
This Plugin Published: 2017-01-06
Last Modification Time: 2021-01-11
Plugin Version: 3.9
Plugin Type: local
Plugin Family: Fedora Local Security Checks
Dependencies:
ssh_get_info.nasl
Required KB Items [?]: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list
Vulnerability Information
Severity: Critical
Vulnerability Published: 2016-12-30
Patch Published: 2017-01-06
CVE [?]: CVE-2016-10033, CVE-2016-10045
CPE [?]: cpe:/o:fedoraproject:fedora:25, p-cpe:/a:fedoraproject:fedora:php-PHPMailer
Synopsis
The remote Fedora host is missing a security update.
Description
**Version 5.2.21** (December 28th 2016)
- Fix missed number update in version file - no functional changes
----
**Version 5.2.20** (December 28th 2016)
- **SECURITY** Critical security update for CVE-2016-10045 please update now! Thanks to [Dawid Golunski](https://legalhackers.com) and Paul Buonopane (Zenexer).
----
** Version 5.2.19** (December 26th 2016)
- Minor cleanup
** Version 5.2.18** (December 24th 2016)
- **SECURITY** Critical security update for CVE-2016-10033 please update now! Thanks to [Dawid Golunski](https://legalhackers.com).
- Add ability to extract the SMTP transaction ID from some common SMTP success messages
- Minor documentation tweaks
** Version 5.2.17** (December 9th 2016)
- This is officially the last feature release of 5.2. Security fixes only from now on; use PHPMailer 6.0!
- Allow DKIM private key to be provided as a string
- Provide mechanism to allow overriding of boundary and message ID creation
- Improve Brazilian Portuguese, Spanish, Swedish, Romanian, and German translations
- PHP 7.1 support for Travis-CI
- Fix some language codes
- Add security notices
- Improve DKIM compatibility in older PHP versions
- Improve trapping and capture of SMTP connection errors
- Improve passthrough of error levels for debug output
- PHPDoc cleanup
Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
Solution
Update the affected php-PHPMailer package.
Public Exploits
Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub, Core Impact)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Fedora 25 : php-PHPMailer (2016-6941d25875) vulnerability:
- Metasploit: exploit/multi/http/phpmailer_arg_injection
[PHPMailer Sendmail Argument Injection] - Metasploit: exploit/unix/webapp/wp_phpmailer_host_header
[WordPress PHPMailer Host Header Command Injection] - Exploit-DB: exploits/php/remote/41996.sh
[EDB-41996: Vanilla Forums < 2.3 - Remote Code Execution] - Exploit-DB: exploits/php/remote/42024.rb
[EDB-42024: WordPress Plugin PHPMailer 4.6 - Host Header Command Injection (Metasploit)] - Exploit-DB: exploits/php/webapps/40968.sh
[EDB-40968: PHPMailer < 5.2.18 - Remote Code Execution] - Exploit-DB: exploits/php/webapps/40970.php
[EDB-40970: PHPMailer < 5.2.18 - Remote Code Execution] - Exploit-DB: exploits/php/webapps/40969.py
[EDB-40969: PHPMailer < 5.2.20 - Remote Code Execution] - Exploit-DB: exploits/php/webapps/40974.py
[EDB-40974: PHPMailer < 5.2.18 - Remote Code Execution] - Exploit-DB: exploits/php/webapps/40986.py
[EDB-40986: PHPMailer < 5.2.20 / SwiftMailer < 5.4.5-DEV / Zend Framework / zend-mail < 2.4.11 - 'AIO' 'PwnScriptum' Remote Code Execution] - Exploit-DB: exploits/multiple/webapps/41688.rb
[EDB-41688: PHPMailer < 5.2.19 - Sendmail Argument Injection (Metasploit)] - Exploit-DB: exploits/linux/webapps/41962.sh
[EDB-41962: WordPress Core 4.6 - Remote Code Execution] - Exploit-DB: exploits/php/webapps/42221.py
[EDB-42221: PHPMailer < 5.2.20 with Exim MTA - Remote Code Execution] - GitHub: https://exploitbox.io/vuln/WordPress-Exploit-4-6-RCE-CODE-EXEC-CVE-2016-10033.html
[CVE-2016-10033] - GitHub: https://github.com/0x00-0x00/CVE-2016-10033
[CVE-2016-10033: PHPMailer < 5.2.18 Remote Code Execution Exploit] - GitHub: https://github.com/AIPOCAI/CVE-2016-10033
[CVE-2016-10033: PoC for exploiting CVE-2016-10033 : The mailSend function in the isMail transport in ...] - GitHub: https://github.com/AIPOCAI/CVE-2016-10045
[CVE-2016-10033: PoC for exploiting CVE-2016-10045 : The isMail transport in PHPMailer before 5.2.20 ...] - GitHub: https://github.com/Bajunan/CVE-2016-10033
[CVE-2016-10033: WordPress 4.6 - Remote Code Execution (RCE) PoC Exploit] - GitHub: https://github.com/Brens498/AulaMvc
[CVE-2016-10033] - GitHub: https://github.com/Dharini432/Leafnow
[CVE-2016-10033] - GitHub: https://github.com/DynamicDesignz/Alien-Framework
[CVE-2016-10033] - GitHub: https://github.com/GeneralTesler/CVE-2016-10033
[CVE-2016-10033: RCE against WordPress 4.6; Python port of ...] - GitHub: https://github.com/Hehhchen/eCommerce
[CVE-2016-10033] - GitHub: https://github.com/Jack-LaL/idk
[CVE-2016-10033] - GitHub: https://github.com/JesusAyalaEspinoza/p
[CVE-2016-10033] - GitHub: https://github.com/KNIGHTTH0R/PHPMail
[CVE-2016-10033] - GitHub: https://github.com/Kalyan457/Portfolio
[CVE-2016-10033] - GitHub: https://github.com/Keshav9863/MFA_SIGN_IN_PAGE
[CVE-2016-10033] - GitHub: https://github.com/MarcioPeters/PHP
[CVE-2016-10033] - GitHub: https://github.com/MartinDala/Envio-Simples-de-Email-com-PHPMailer-
[CVE-2016-10033] - GitHub: https://github.com/NCSU-DANCE-Research-Group/CDL
[CVE-2016-10033] - GitHub: https://github.com/Rachna-2018/email
[CVE-2016-10033] - GitHub: https://github.com/Ramkiskhan/sample
[CVE-2016-10033] - GitHub: https://github.com/Razzle23/mail-3
[CVE-2016-10033] - GitHub: https://github.com/Rivaldo28/ecommerce
[CVE-2016-10033] - GitHub: https://github.com/RyouYoo/CVE-2016-10033
[CVE-2016-10033: Remote Code Execution vulnerability in PHPMailer.] - GitHub: https://github.com/Sakanksha07/Journey-With-Food
[CVE-2016-10033] - GitHub: https://github.com/Sakshibadoni/LetsTravel
[CVE-2016-10033] - GitHub: https://github.com/SexyBeast233/SecBooks
[CVE-2016-10033] - GitHub: https://github.com/ThatsSacha/forum
[CVE-2016-10033] - GitHub: https://github.com/Zenexer/safeshell
[CVE-2016-10033: Prevent PHP vulnerabilities similar to CVE-2016-10033 and CVE-2016-10045.] - GitHub: https://github.com/afkpaul/smtp
[CVE-2016-10033] - GitHub: https://github.com/alexandrazlatea/emails
[CVE-2016-10033] - GitHub: https://github.com/anishbhut/simpletest
[CVE-2016-10033] - GitHub: https://github.com/anushasinha24/send-mail-using-PHPMailer
[CVE-2016-10033] - GitHub: https://github.com/athirakottekadnew/testingRepophp
[CVE-2016-10033] - GitHub: https://github.com/awidardi/opsxcq-cve-2016-10033
[CVE-2016-10033: To solve CTFS.me problem] - GitHub: https://github.com/bkrishnasowmya/OTMS-project
[CVE-2016-10033] - GitHub: https://github.com/boy-hack/hack-requests
[CVE-2016-10033] - GitHub: https://github.com/chipironcin/CVE-2016-10033
[CVE-2016-10033: Code and vulnerable WordPress container for exploiting CVE-2016-10033] - GitHub: https://github.com/cyberpacifists/redteam
[CVE-2016-10033] - GitHub: https://github.com/denniskinyuandege/mailer
[CVE-2016-10033] - GitHub: https://github.com/devhribeiro/cadweb_aritana
[CVE-2016-10033] - GitHub: https://github.com/dipak1997/Alumni-M
[CVE-2016-10033] - GitHub: https://github.com/dp7sv/ECOMM
[CVE-2016-10033] - GitHub: https://github.com/duhengchen1112/demo
[CVE-2016-10033] - GitHub: https://github.com/elhouti/ensimag-ssi-2019-20
[CVE-2016-10033] - GitHub: https://github.com/eminemdordie/mailer
[CVE-2016-10033] - GitHub: https://github.com/faraz07-AI/fullstack-Jcomp
[CVE-2016-10033] - GitHub: https://github.com/fatihbaba44/PeakGames
[CVE-2016-10033] - GitHub: https://github.com/fengjixuchui/RedTeamer
[CVE-2016-10033] - GitHub: https://github.com/geet56/geet22
[CVE-2016-10033] - GitHub: https://github.com/gnikita01/hackedemistwebsite
[CVE-2016-10033] - GitHub: https://github.com/gvido-berzins/GitBook
[CVE-2016-10033] - GitHub: https://github.com/huongbee/mailer0112
[CVE-2016-10033] - GitHub: https://github.com/huongbee/mailer0505
[CVE-2016-10033] - GitHub: https://github.com/inusah42/ecomm
[CVE-2016-10033] - GitHub: https://github.com/izisoft/mailer
[CVE-2016-10033] - GitHub: https://github.com/izisoft/yii2-mailer
[CVE-2016-10033] - GitHub: https://github.com/j4k0m/CVE-2016-10033
[CVE-2016-10033: Remote Code Execution vulnerability in PHPMailer.] - GitHub: https://github.com/jaimedaw86/repositorio-DAW06_PHP
[CVE-2016-10033] - GitHub: https://github.com/jamesxiaofeng/sendmail
[CVE-2016-10033] - GitHub: https://github.com/jbperry1998/bd_calendar
[CVE-2016-10033] - GitHub: https://github.com/laddoms/faces
[CVE-2016-10033] - GitHub: https://github.com/lanlehoang67/sender
[CVE-2016-10033] - GitHub: https://github.com/lcscastro/RecursoFunctionEmail
[CVE-2016-10033] - GitHub: https://github.com/leftarmm/speexx
[CVE-2016-10033] - GitHub: https://github.com/leocifrao/site-restaurante
[CVE-2016-10033] - GitHub: https://github.com/liusec/WP-CVE-2016-10033
[CVE-2016-10033] - GitHub: https://github.com/luxiaojue/phpmail
[CVE-2016-10033] - GitHub: https://github.com/madbananaman/L-Mailer
[CVE-2016-10033] - GitHub: https://github.com/mintoua/Fantaziya_WEBSite
[CVE-2016-10033] - GitHub: https://github.com/mohamed-aymen-ellafi/web
[CVE-2016-10033] - GitHub: https://github.com/morkamimi/poop
[CVE-2016-10033] - GitHub: https://github.com/natsootail/alumni
[CVE-2016-10033] - GitHub: https://github.com/nyamleeze/commit_testing
[CVE-2016-10033] - GitHub: https://github.com/opsxcq/exploit-CVE-2016-10033
[CVE-2016-10033: PHPMailer < 5.2.18 Remote Code Execution exploit and vulnerable container] - GitHub: https://github.com/paralelo14/CVE_2016-10033
[CVE-2016-10033: Exploiting PHPMail with back connection (reverse shell) from the target] - GitHub: https://github.com/pctechsupport123/php
[CVE-2016-10033] - GitHub: https://github.com/pedro823/cve-2016-10033-45
[CVE-2016-10033: Exploits CVE-2016-10033 and CVE-2016-10045] - GitHub: https://github.com/prakashshubham13/portfolio
[CVE-2016-10033] - GitHub: https://github.com/prathamrathore/portfolio.php
[CVE-2016-10033] - GitHub: https://github.com/qwertyuiop12138/CVE-2016-10033
[CVE-2016-10033] - GitHub: https://github.com/rasisbade/allphp
[CVE-2016-10033] - GitHub: https://github.com/rebujacker/CVEPoCs
[CVE-2016-10033] - GitHub: https://github.com/rohandavid/fitdanish
[CVE-2016-10033] - GitHub: https://github.com/rrathi0705/email
[CVE-2016-10033] - GitHub: https://github.com/rudresh98/e_commerce_IFood
[CVE-2016-10033] - GitHub: https://github.com/sakshibohra05/project
[CVE-2016-10033] - GitHub: https://github.com/sarvottam1766/Project
[CVE-2016-10033] - GitHub: https://github.com/sashasimulik/integration-1
[CVE-2016-10033] - GitHub: https://github.com/supreethsk/rental
[CVE-2016-10033] - GitHub: https://github.com/tvirus-01/PHP_mail
[CVE-2016-10033] - GitHub: https://github.com/vaartjesd/test
[CVE-2016-10033] - GitHub: https://github.com/vatann07/BloodConnect
[CVE-2016-10033] - GitHub: https://github.com/vedavith/mailer
[CVE-2016-10033] - GitHub: https://github.com/waqeen/cyber_security21
[CVE-2016-10033] - GitHub: https://github.com/wesandradealves/sitio_email_api_demo
[CVE-2016-10033] - GitHub: https://github.com/windypermadi/PHP-Mailer
[CVE-2016-10033] - GitHub: https://github.com/zhangqiyi55/phpemail
[CVE-2016-10033] - GitHub: https://github.com/AIPOCAI/CVE-2016-10045
[CVE-2016-10045: PoC for exploiting CVE-2016-10045 : The isMail transport in PHPMailer before 5.2.20 ...] - GitHub: https://github.com/Brens498/AulaMvc
[CVE-2016-10045] - GitHub: https://github.com/Dharini432/Leafnow
[CVE-2016-10045] - GitHub: https://github.com/Hehhchen/eCommerce
[CVE-2016-10045] - GitHub: https://github.com/Jack-LaL/idk
[CVE-2016-10045] - GitHub: https://github.com/JesusAyalaEspinoza/p
[CVE-2016-10045] - GitHub: https://github.com/KNIGHTTH0R/PHPMail
[CVE-2016-10045] - GitHub: https://github.com/Kalyan457/Portfolio
[CVE-2016-10045] - GitHub: https://github.com/Keshav9863/MFA_SIGN_IN_PAGE
[CVE-2016-10045] - GitHub: https://github.com/MarcioPeters/PHP
[CVE-2016-10045] - GitHub: https://github.com/MartinDala/Envio-Simples-de-Email-com-PHPMailer-
[CVE-2016-10045] - GitHub: https://github.com/Rachna-2018/email
[CVE-2016-10045] - GitHub: https://github.com/Ramkiskhan/sample
[CVE-2016-10045] - GitHub: https://github.com/Razzle23/mail-3
[CVE-2016-10045] - GitHub: https://github.com/Rivaldo28/ecommerce
[CVE-2016-10045] - GitHub: https://github.com/Sakanksha07/Journey-With-Food
[CVE-2016-10045] - GitHub: https://github.com/Sakshibadoni/LetsTravel
[CVE-2016-10045] - GitHub: https://github.com/ThatsSacha/forum
[CVE-2016-10045] - GitHub: https://github.com/Zenexer/safeshell
[CVE-2016-10045: Prevent PHP vulnerabilities similar to CVE-2016-10033 and CVE-2016-10045.] - GitHub: https://github.com/afkpaul/smtp
[CVE-2016-10045] - GitHub: https://github.com/alexandrazlatea/emails
[CVE-2016-10045] - GitHub: https://github.com/anishbhut/simpletest
[CVE-2016-10045] - GitHub: https://github.com/anushasinha24/send-mail-using-PHPMailer
[CVE-2016-10045] - GitHub: https://github.com/athirakottekadnew/testingRepophp
[CVE-2016-10045] - GitHub: https://github.com/bkrishnasowmya/OTMS-project
[CVE-2016-10045] - GitHub: https://github.com/denniskinyuandege/mailer
[CVE-2016-10045] - GitHub: https://github.com/devhribeiro/cadweb_aritana
[CVE-2016-10045] - GitHub: https://github.com/dipak1997/Alumni-M
[CVE-2016-10045] - GitHub: https://github.com/dp7sv/ECOMM
[CVE-2016-10045] - GitHub: https://github.com/duhengchen1112/demo
[CVE-2016-10045] - GitHub: https://github.com/eminemdordie/mailer
[CVE-2016-10045] - GitHub: https://github.com/faraz07-AI/fullstack-Jcomp
[CVE-2016-10045] - GitHub: https://github.com/fatihbaba44/PeakGames
[CVE-2016-10045] - GitHub: https://github.com/geet56/geet22
[CVE-2016-10045] - GitHub: https://github.com/gnikita01/hackedemistwebsite
[CVE-2016-10045] - GitHub: https://github.com/huongbee/mailer0112
[CVE-2016-10045] - GitHub: https://github.com/huongbee/mailer0505
[CVE-2016-10045] - GitHub: https://github.com/inusah42/ecomm
[CVE-2016-10045] - GitHub: https://github.com/izisoft/mailer
[CVE-2016-10045] - GitHub: https://github.com/izisoft/yii2-mailer
[CVE-2016-10045] - GitHub: https://github.com/jaimedaw86/repositorio-DAW06_PHP
[CVE-2016-10045] - GitHub: https://github.com/jamesxiaofeng/sendmail
[CVE-2016-10045] - GitHub: https://github.com/jbperry1998/bd_calendar
[CVE-2016-10045] - GitHub: https://github.com/laddoms/faces
[CVE-2016-10045] - GitHub: https://github.com/lanlehoang67/sender
[CVE-2016-10045] - GitHub: https://github.com/lcscastro/RecursoFunctionEmail
[CVE-2016-10045] - GitHub: https://github.com/leftarmm/speexx
[CVE-2016-10045] - GitHub: https://github.com/leocifrao/site-restaurante
[CVE-2016-10045] - GitHub: https://github.com/luxiaojue/phpmail
[CVE-2016-10045] - GitHub: https://github.com/madbananaman/L-Mailer
[CVE-2016-10045] - GitHub: https://github.com/mintoua/Fantaziya_WEBSite
[CVE-2016-10045] - GitHub: https://github.com/mohamed-aymen-ellafi/web
[CVE-2016-10045] - GitHub: https://github.com/morkamimi/poop
[CVE-2016-10045] - GitHub: https://github.com/natsootail/alumni
[CVE-2016-10045] - GitHub: https://github.com/nyamleeze/commit_testing
[CVE-2016-10045] - GitHub: https://github.com/pctechsupport123/php
[CVE-2016-10045] - GitHub: https://github.com/pedro823/cve-2016-10033-45
[CVE-2016-10045: Exploits CVE-2016-10033 and CVE-2016-10045] - GitHub: https://github.com/prakashshubham13/portfolio
[CVE-2016-10045] - GitHub: https://github.com/prathamrathore/portfolio.php
[CVE-2016-10045] - GitHub: https://github.com/rasisbade/allphp
[CVE-2016-10045] - GitHub: https://github.com/rohandavid/fitdanish
[CVE-2016-10045] - GitHub: https://github.com/rrathi0705/email
[CVE-2016-10045] - GitHub: https://github.com/rudresh98/e_commerce_IFood
[CVE-2016-10045] - GitHub: https://github.com/sakshibohra05/project
[CVE-2016-10045] - GitHub: https://github.com/sarvottam1766/Project
[CVE-2016-10045] - GitHub: https://github.com/sashasimulik/integration-1
[CVE-2016-10045] - GitHub: https://github.com/supreethsk/rental
[CVE-2016-10045] - GitHub: https://github.com/tvirus-01/PHP_mail
[CVE-2016-10045] - GitHub: https://github.com/vaartjesd/test
[CVE-2016-10045] - GitHub: https://github.com/vatann07/BloodConnect
[CVE-2016-10045] - GitHub: https://github.com/vedavith/mailer
[CVE-2016-10045] - GitHub: https://github.com/wesandradealves/sitio_email_api_demo
[CVE-2016-10045] - GitHub: https://github.com/windypermadi/PHP-Mailer
[CVE-2016-10045] - GitHub: https://github.com/zhangqiyi55/phpemail
[CVE-2016-10045] - GitHub: https://github.com/cved-sources/cve-2016-10033
[CVE-2016-10033: Cve-2016-10033]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 6.2 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.2 (Medium) |
CVSS Base Score: | 9.8 (Critical) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 9.1 (Critical) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 9.1 (Critical) |
Go back to menu.
Plugin Source
This is the fedora_2016-6941d25875.nasl nessus plugin source code. This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Fedora Security Advisory FEDORA-2016-6941d25875.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(96319);
script_version("3.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/11");
script_cve_id("CVE-2016-10033", "CVE-2016-10045");
script_xref(name:"FEDORA", value:"2016-6941d25875");
script_name(english:"Fedora 25 : php-PHPMailer (2016-6941d25875)");
script_summary(english:"Checks rpm output for the updated package.");
script_set_attribute(
attribute:"synopsis",
value:"The remote Fedora host is missing a security update."
);
script_set_attribute(
attribute:"description",
value:
"**Version 5.2.21** (December 28th 2016)
- Fix missed number update in version file - no functional
changes
----
**Version 5.2.20** (December 28th 2016)
- **SECURITY** Critical security update for CVE-2016-10045
please update now! Thanks to [Dawid
Golunski](https://legalhackers.com) and Paul Buonopane
(Zenexer).
----
** Version 5.2.19** (December 26th 2016)
- Minor cleanup
** Version 5.2.18** (December 24th 2016)
- **SECURITY** Critical security update for CVE-2016-10033
please update now! Thanks to [Dawid
Golunski](https://legalhackers.com).
- Add ability to extract the SMTP transaction ID from some
common SMTP success messages
- Minor documentation tweaks
** Version 5.2.17** (December 9th 2016)
- This is officially the last feature release of 5.2.
Security fixes only from now on; use PHPMailer 6.0!
- Allow DKIM private key to be provided as a string
- Provide mechanism to allow overriding of boundary and
message ID creation
- Improve Brazilian Portuguese, Spanish, Swedish,
Romanian, and German translations
- PHP 7.1 support for Travis-CI
- Fix some language codes
- Add security notices
- Improve DKIM compatibility in older PHP versions
- Improve trapping and capture of SMTP connection errors
- Improve passthrough of error levels for debug output
- PHPDoc cleanup
Note that Tenable Network Security has extracted the preceding
description block directly from the Fedora update system website.
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://bodhi.fedoraproject.org/updates/FEDORA-2016-6941d25875"
);
script_set_attribute(
attribute:"see_also",
value:"https://legalhackers.com"
);
script_set_attribute(
attribute:"solution",
value:"Update the affected php-PHPMailer package."
);
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:F/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploit_framework_core", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'PHPMailer Sendmail Argument Injection');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:php-PHPMailer");
script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:25");
script_set_attribute(attribute:"vuln_publication_date", value:"2016/12/30");
script_set_attribute(attribute:"patch_publication_date", value:"2017/01/06");
script_set_attribute(attribute:"plugin_publication_date", value:"2017/01/06");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2017-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_family(english:"Fedora Local Security Checks");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/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);
release = get_kb_item("Host/RedHat/release");
if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
os_ver = pregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
os_ver = os_ver[1];
if (! preg(pattern:"^25([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 25", "Fedora " + os_ver);
if (!get_kb_item("Host/RedHat/rpm-list")) 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, "Fedora", cpu);
flag = 0;
if (rpm_check(release:"FC25", reference:"php-PHPMailer-5.2.21-1.fc25")) flag++;
if (flag)
{
security_report_v4(
port : 0,
severity : SECURITY_HOLE,
extra : rpm_report_get()
);
exit(0);
}
else
{
tested = pkg_tests_get();
if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
else audit(AUDIT_PACKAGE_NOT_INSTALLED, "php-PHPMailer");
}
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/fedora_2016-6941d25875.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\fedora_2016-6941d25875.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/fedora_2016-6941d25875.nasl
Go back to menu.
How to Run
Here is how to run the Fedora 25 : php-PHPMailer (2016-6941d25875) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Fedora Local Security Checks plugin family.
- On the right side table select Fedora 25 : php-PHPMailer (2016-6941d25875) plugin ID 96319.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl fedora_2016-6941d25875.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a fedora_2016-6941d25875.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - fedora_2016-6941d25875.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state fedora_2016-6941d25875.nasl -t <IP/HOST>
Go back to menu.
References
Fedora Security Update: See also:
- https://www.tenable.com/plugins/nessus/96319
- https://bodhi.fedoraproject.org/updates/FEDORA-2016-6941d25875
- https://legalhackers.com
- https://vulners.com/nessus/FEDORA_2016-6941D25875.NASL
- 96186 - Debian DLA-770-2 : libphp-phpmailer regression update
- 96194 - Debian DSA-3750-1 : libphp-phpmailer - security update
- 100280 - F5 Networks BIG-IP : PHPMailer vulnerability (K73926196)
- 100182 - F5 Networks BIG-IP : PHPMailer vulnerability (K74977440)
- 96574 - Fedora 24 : php-PHPMailer (2017-c3dc97e1e1)
- 96172 - FreeBSD : phpmailer -- Remote Code Execution (3c4693de-ccf7-11e6-a9a5-b499baebfeaf)
- 96121 - FreeBSD : phpmailer -- Remote Code Execution (c7656d4c-cb60-11e6-a9a5-b499baebfeaf)
- 97812 - FreeBSD : moodle -- multiple vulnerabilities (f72d98d1-0b7e-11e7-970f-002590263bf5)
- 96606 - WordPress < 4.7.1 Multiple Vulnerabilities
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file fedora_2016-6941d25875.nasl version 3.9. For more plugins, visit the Nessus Plugin Library.
Go back to menu.