FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024) - Nessus

High   Plugin ID: 153894

This page contains detailed information about the FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 153894
Name: FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024)
Filename: freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl
Vulnerability Published: 2021-10-05
This Plugin Published: 2021-10-06
Last Modification Time: 2022-01-26
Plugin Version: 1.10
Plugin Type: local
Plugin Family: FreeBSD Local Security Checks
Dependencies: ssh_get_info.nasl
Required KB Items [?]: Host/FreeBSD/pkg_info, Host/FreeBSD/release, Host/local_checks_enabled

Vulnerability Information


Severity: High
Vulnerability Published: 2021-10-05
Patch Published: 2021-10-05
CVE [?]: CVE-2021-41524, CVE-2021-41773
CPE [?]: cpe:/o:freebsd:freebsd, p-cpe:/a:freebsd:freebsd:apache24

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

The Apache http server project reports :

- moderate: NULL pointer dereference in h2 fuzzing (CVE-2021-41524)

- important: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49 (CVE-2021-41773)

Solution

Update the affected package.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024) vulnerability:

  1. Metasploit: auxiliary/scanner/http/apache_normalize_path
    [Apache 2.4.49/2.4.50 Traversal RCE]
  2. Metasploit: exploit/multi/http/apache_normalize_path_rce
    [Apache 2.4.49/2.4.50 Traversal RCE]
  3. Metasploit: auxiliary/scanner/http/apache_normalize_path
    [Apache 2.4.49/2.4.50 Traversal RCE scanner]
  4. Exploit-DB: exploits/multiple/webapps/50383.sh
    [EDB-50383: Apache HTTP Server 2.4.49 - Path Traversal & Remote Code Execution (RCE)]
  5. Exploit-DB: exploits/multiple/webapps/50512.py
    [EDB-50512: Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (3)]
  6. GitHub: https://github.com/0day666/Vulnerability-verification
    [CVE-2021-41773]
  7. GitHub: https://github.com/0e0w/GoHackTools
    [CVE-2021-41773]
  8. GitHub: https://github.com/0x3n0/redeam
    [CVE-2021-41773]
  9. GitHub: https://github.com/0xsyr0/OSCP
    [CVE-2021-41773]
  10. GitHub: https://github.com/AkshayraviC09YC47/CVE-Exploits
    [CVE-2021-41773]
  11. GitHub: https://github.com/BabyTeam1024/CVE-2021-41773
    [CVE-2021-41773]
  12. GitHub: https://github.com/BincangSiber/CVE-2021-41773
    [CVE-2021-41773]
  13. GitHub: https://github.com/BlueTeamSteve/CVE-2021-41773
    [CVE-2021-41773]
  14. GitHub: https://github.com/CHYbeta/Vuln100Topics20
    [CVE-2021-41773]
  15. GitHub: https://github.com/Chocapikk/CVE-2021-41773
    [CVE-2021-41773]
  16. GitHub: https://github.com/ComdeyOverFlow/CVE-2021-41773
    [CVE-2021-41773]
  17. GitHub: https://github.com/ComdeyOverflow/CVE-2021-41773
    [CVE-2021-41773]
  18. GitHub: https://github.com/DoTuan1/Reserch-CVE-2021-41773
    [CVE-2021-41773]
  19. GitHub: https://github.com/FDlucifer/firece-fish
    [CVE-2021-41773]
  20. GitHub: https://github.com/Fa1c0n35/CVE-2021-41773
    [CVE-2021-41773]
  21. GitHub: https://github.com/H0j3n/EzpzCheatSheet
    [CVE-2021-41773]
  22. GitHub: https://github.com/H0j3n/EzpzShell
    [CVE-2021-41773]
  23. GitHub: https://github.com/HxDDD/CVE-PoC
    [CVE-2021-41773]
  24. GitHub: https://github.com/KAB8345/CVE-2021-41773
    [CVE-2021-41773]
  25. GitHub: https://github.com/LayarKacaSiber/CVE-2021-41773
    [CVE-2021-41773]
  26. GitHub: https://github.com/LetouRaphael/Poc-CVE-2021-41773
    [CVE-2021-41773]
  27. GitHub: https://github.com/MazX0p/CVE-2021-41773
    [CVE-2021-41773]
  28. GitHub: https://github.com/Ming119/CVE-2021-41773_Exploit
    [CVE-2021-41773]
  29. GitHub: https://github.com/Mr-xn/Penetration_Testing_POC
    [CVE-2021-41773]
  30. GitHub: https://github.com/N0el4kLs/Vulhub_Exp
    [CVE-2021-41773]
  31. GitHub: https://github.com/N3w-elf/CVE-2021-41773-
    [CVE-2021-41773]
  32. GitHub: https://github.com/Shadow-warrior0/Apache_path_traversal
    [CVE-2021-41773]
  33. GitHub: https://github.com/TAI-REx/cve-2021-41773-nse
    [CVE-2021-41773]
  34. GitHub: https://github.com/TishcaTpx/cve-2021-41773-nse
    [CVE-2021-41773: CVE-2021-41773.nse]
  35. GitHub: https://github.com/WynSon/CVE-2021-41773
    [CVE-2021-41773]
  36. GitHub: https://github.com/ZephrFish/CVE-2021-41773-PoC
    [CVE-2021-41773]
  37. GitHub: https://github.com/ahmad4fifz/docker-cve-2021-41773
    [CVE-2021-41773]
  38. GitHub: https://github.com/anonsecteaminc/CVE-2021-41773-PoC
    [CVE-2021-41773: CVE-2021-41773-PoC]
  39. GitHub: https://github.com/asaotomo/CVE-2021-42013-Apache-RCE-POC-EXP
    [CVE-2021-41773: Apache HTTP ...]
  40. GitHub: https://github.com/asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp
    [CVE-2021-41773: Apache 远程代码执行 (CVE-2021-42013)批量检测工具:Apache HTTP ...]
  41. GitHub: https://github.com/bernardas/netsec-polygon
    [CVE-2021-41773: Environment for CVE-2021-41773 recreation.]
  42. GitHub: https://github.com/binganao/vulns-2022
    [CVE-2021-41773]
  43. GitHub: https://github.com/byteofjoshua/CVE-2021-41773
    [CVE-2021-41773]
  44. GitHub: https://github.com/capdegarde/apache_path_traversal
    [CVE-2021-41773]
  45. GitHub: https://github.com/cgddgc/CVE-2021-41773-42013
    [CVE-2021-41773]
  46. GitHub: https://github.com/cisagov/Malcolm
    [CVE-2021-41773]
  47. GitHub: https://github.com/creadpag/cve-2021-41773-nse
    [CVE-2021-41773: CVE-2021-41773.nse]
  48. GitHub: https://github.com/cryst4lliz3/CVE-2021-41773
    [CVE-2021-41773]
  49. GitHub: https://github.com/fardeen-ahmed/Bug-bounty-Writeups
    [CVE-2021-41773]
  50. GitHub: https://github.com/fnatalucci/CVE-2021-41773-RCE
    [CVE-2021-41773]
  51. GitHub: https://github.com/hackingyseguridad/nmap
    [CVE-2021-41773]
  52. GitHub: https://github.com/honypot/CVE-2021-41773
    [CVE-2021-41773]
  53. GitHub: https://github.com/htrgouvea/lab-cve-2021-41773
    [CVE-2021-41773: Docker container lab to play/learn with CVE-2021-41773]
  54. GitHub: https://github.com/htrgouvea/research
    [CVE-2021-41773]
  55. GitHub: https://github.com/i6c/MASS_CVE-2021-41773
    [CVE-2021-41773]
  56. GitHub: https://github.com/iilegacyyii/PoC-CVE-2021-41773
    [CVE-2021-41773]
  57. GitHub: https://github.com/jhye0n/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773 Test Page & Exploit Code]
  58. GitHub: https://github.com/kubota/POC-CVE-2021-41773
    [CVE-2021-41773]
  59. GitHub: https://github.com/lorddemon/CVE-2021-41773-PoC
    [CVE-2021-41773]
  60. GitHub: https://github.com/lsass-exe/CVE-2021-41773
    [CVE-2021-41773]
  61. GitHub: https://github.com/ltfafei/my_POC
    [CVE-2021-41773]
  62. GitHub: https://github.com/luck-ying/Library-POC
    [CVE-2021-41773]
  63. GitHub: https://github.com/m96dg/CVE-2021-41773-exercise
    [CVE-2021-41773: A flaw was found in a change made to path normalization in Apache HTTP Server ...]
  64. GitHub: https://github.com/m96dg/vulnerable_docker_apache_2_4_49
    [CVE-2021-41773]
  65. GitHub: https://github.com/mahtin/unix-v7-uucp-chkpth-bug
    [CVE-2021-41773]
  66. GitHub: https://github.com/masahiro331/CVE-2021-41773
    [CVE-2021-41773]
  67. GitHub: https://github.com/meicookies/cve-2021-41773_2021-42013
    [CVE-2021-41773: mass scan for apache 2.4.49/2.4.50]
  68. GitHub: https://github.com/mohwahyudi/cve-2021-41773
    [CVE-2021-41773]
  69. GitHub: https://github.com/norrig/CVE-2021-41773-exploiter
    [CVE-2021-41773: School project - Please use other repos for actual testing]
  70. GitHub: https://github.com/oxctdev/CVE-2021-41773
    [CVE-2021-41773: Apache HTTPd (2.4.49) – Local File Disclosure (LFI)]
  71. GitHub: https://github.com/pisut4152/Sigma-Rule-for-CVE-2021-41773-and-CVE-2021-42013-exploitation-attempt
    [CVE-2021-41773]
  72. GitHub: https://github.com/puckiestyle/CVE-2021-41773
    [CVE-2021-41773]
  73. GitHub: https://github.com/qwutony/CVE-2021-41773
    [CVE-2021-41773]
  74. GitHub: https://github.com/r00tVen0m/CVE-2021-41773
    [CVE-2021-41773]
  75. GitHub: https://github.com/ranggaggngntt/CVE-2021-41773
    [CVE-2021-41773]
  76. GitHub: https://github.com/shiomiyan/CVE-2021-41773
    [CVE-2021-41773]
  77. GitHub: https://github.com/signorrayan/RedTeam_toolkit
    [CVE-2021-41773]
  78. GitHub: https://github.com/skentagon/CVE-2021-41773
    [CVE-2021-41773]
  79. GitHub: https://github.com/spiderz0ne/CVE-2021-41773
    [CVE-2021-41773]
  80. GitHub: https://github.com/the29a/CVE-2021-41773
    [CVE-2021-41773: Small PoC of CVE-2021-41773]
  81. GitHub: https://github.com/thehackersbrain/CVE-2021-41773
    [CVE-2021-41773: Apache2 2.4.49 - LFI & RCE Exploit - CVE-2021-41773]
  82. GitHub: https://github.com/twseptian/CVE-2021-42013-Docker-Lab
    [CVE-2021-41773]
  83. GitHub: https://github.com/vuongnv3389-sec/cve-2021-41773
    [CVE-2021-41773]
  84. GitHub: https://github.com/xMohamed0/CVE-2021-41773
    [CVE-2021-41773]
  85. GitHub: https://github.com/0xAlmighty/CVE-2021-41773-PoC
    [CVE-2021-41773: Path Traversal and RCE in Apache HTTP Server 2.4.49]
  86. GitHub: https://github.com/0xRar/CVE-2021-41773
    [CVE-2021-41773: Exploit for Apache 2.4.49]
  87. GitHub: https://github.com/1nhann/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773 的复现]
  88. GitHub: https://github.com/5gstudent/cve-2021-41773-and-cve-2021-42013
    [CVE-2021-41773: cve-2021-41773 即 cve-2021-42013 批量检测脚本]
  89. GitHub: https://github.com/ahmad4fifz/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773 on Docker]
  90. GitHub: https://github.com/ahmad4fifz/CVE-2021-42013
    [CVE-2021-41773: CVE-2021-41773 on Docker]
  91. GitHub: https://github.com/apapedulimu/Apachuk
    [CVE-2021-41773: CVE-2021-41773 Grabber]
  92. GitHub: https://github.com/AssassinUKG/CVE-2021-41773
    [CVE-2021-41773: Apache 2.4.49]
  93. GitHub: https://github.com/b1tsec/CVE-2021-41773
    [CVE-2021-41773: A Python script to check if an Apache web server is vulnerable to CVE-2021-41773]
  94. GitHub: https://github.com/Balgogan/CVE-2021-41773
    [CVE-2021-41773: Ce programme permet de détecter une faille RCE sur les serveurs Apache 2.4.49 et ...]
  95. GitHub: https://github.com/blasty/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773 playground]
  96. GitHub: https://github.com/CalfCrusher/Path-traversal-RCE-Apache-2.4.49-2.4.50-Exploit
    [CVE-2021-41773: CVE-2021-41773 | CVE-2021-42013 Exploit Tool (Apache/2.4.49-2.4.50)]
  97. GitHub: https://github.com/cloudbyteelias/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773 Docker lab]
  98. GitHub: https://github.com/corelight/CVE-2021-41773
    [CVE-2021-41773: A Zeek package which raises notices for Path Traversal/RCE in Apache HTTP Server ...]
  99. GitHub: https://github.com/creadpag/CVE-2021-41773-POC
    [CVE-2021-41773]
  100. GitHub: https://github.com/EagleTube/CVE-2021-41773
    [CVE-2021-41773: Apache 2.4.49 Path Traversal Vulnerability Checker]
  101. GitHub: https://github.com/habibiefaried/CVE-2021-41773-PoC
    [CVE-2021-41773: PoC for CVE-2021-41773 with docker to demonstrate]
  102. GitHub: https://github.com/HightechSec/scarce-apache2
    [CVE-2021-41773: A framework for bug hunting or pentesting targeting websites that have ...]
  103. GitHub: https://github.com/Hydragyrum/CVE-2021-41773-Playground
    [CVE-2021-41773: Some docker images to play with CVE-2021-41773 and CVE-2021-42013]
  104. GitHub: https://github.com/IcmpOff/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution-Exploit
    [CVE-2021-41773: This Metasploit module exploits an unauthenticated remote code execution ...]
  105. GitHub: https://github.com/im-hanzou/apachrot
    [CVE-2021-41773: Apache CVE-2021-41773/2021-42013 Mass Vulnerability Checker]
  106. GitHub: https://github.com/inbug-team/CVE-2021-41773_CVE-2021-42013
    [CVE-2021-41773: CVE-2021-41773 CVE-2021-42013漏洞批量检测工具]
  107. GitHub: https://github.com/itsecurityco/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773 POC with Docker]
  108. GitHub: https://github.com/jbovet/CVE-2021-41773
    [CVE-2021-41773: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49 ...]
  109. GitHub: https://github.com/jheeree/Simple-CVE-2021-41773-checker
    [CVE-2021-41773: Simple script realizado en bash, para revisión de múltiples hosts para ...]
  110. GitHub: https://github.com/justakazh/mass_cve-2021-41773
    [CVE-2021-41773: MASS CVE-2021-41773]
  111. GitHub: https://github.com/knqyf263/CVE-2021-41773
    [CVE-2021-41773: Path traversal in Apache HTTP Server 2.4.49 (CVE-2021-41773)]
  112. GitHub: https://github.com/ksanchezcld/httpd-2.4.49
    [CVE-2021-41773: Critical: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and ...]
  113. GitHub: https://github.com/lopqto/CVE-2021-41773_Honeypot
    [CVE-2021-41773: Simple honeypot for CVE-2021-41773 vulnerability]
  114. GitHub: https://github.com/Ls4ss/CVE-2021-41773_CVE-2021-42013
    [CVE-2021-41773: Apache HTTP Server 2.4.49, 2.4.50 - Path Traversal & RCE]
  115. GitHub: https://github.com/LudovicPatho/CVE-2021-41773
    [CVE-2021-41773: The first vulnerability with the CVE identifier CVE-2021-41773 is a path traversal ...]
  116. GitHub: https://github.com/mauricelambert/CVE-2021-41773
    [CVE-2021-41773: These Metasploit, Nmap, Python and Ruby scripts detects and exploits CVE-2021-41773 ...]
  117. GitHub: https://github.com/MrCl0wnLab/SimplesApachePathTraversal
    [CVE-2021-41773: Tool check: CVE-2021-41773, CVE-2021-42013, CVE-2020-17519]
  118. GitHub: https://github.com/mr-exo/CVE-2021-41773
    [CVE-2021-41773: Remote Code Execution exploit for Apache servers. Affected versions: Apache 2.4.49, ...]
  119. GitHub: https://github.com/n3k00n3/CVE-2021-41773
    [CVE-2021-41773: exploit to CVE-2021-41773]
  120. GitHub: https://github.com/numanturle/CVE-2021-41773
    [CVE-2021-41773]
  121. GitHub: https://github.com/PentesterGuruji/CVE-2021-41773
    [CVE-2021-41773: Path Traversal vulnerability in Apache 2.4.49]
  122. GitHub: https://github.com/RyouYoo/CVE-2021-41773
    [CVE-2021-41773: Exploitation of CVE-2021-41773 a Directory Traversal in Apache 2.4.49.]
  123. GitHub: https://github.com/Sakura-nee/CVE-2021-41773
    [CVE-2021-41773: Mass exploitation CVE-2021-41773 and auto detect possible RCE]
  124. GitHub: https://github.com/scarmandef/CVE-2021-41773
    [CVE-2021-41773: Apache HTTP Server 2.4.49, 2.4.50 - Path Traversal & RCE]
  125. GitHub: https://github.com/superzerosec/CVE-2021-41773
    [CVE-2021-41773: POC]
  126. GitHub: https://github.com/TheLastVvV/CVE-2021-41773
    [CVE-2021-41773: Poc CVE 2021-41773 - Apache 2.4.49 with CGI enabled]
  127. GitHub: https://github.com/TishcaTpx/POC-CVE-2021-41773
    [CVE-2021-41773: Poc.py]
  128. GitHub: https://github.com/twseptian/CVE-2021-41773
    [CVE-2021-41773: CVE-2021-41773: Path Traversal Zero-Day in Apache HTTP Server Exploited]
  129. GitHub: https://github.com/vida00/Scanner-CVE-2021-41773
    [CVE-2021-41773: A automatic scanner to apache 2.4.49]
  130. GitHub: https://github.com/vinhjaxt/CVE-2021-41773-exploit
    [CVE-2021-41773: CVE-2021-41773, poc, exploit]
  131. GitHub: https://github.com/vulf/CVE-2021-41773_42013
    [CVE-2021-41773: Lab setup for CVE-2021-41773 (Apache httpd 2.4.49) and CVE-2021-42013 (Apache httpd ...]
  132. GitHub: https://github.com/Vulnmachines/cve-2021-41773
    [CVE-2021-41773: CVE-2021-41773 Path Traversal vulnerability in Apache 2.4.49.]
  133. GitHub: https://github.com/wangfly-me/Apache_Penetration_Tool
    [CVE-2021-41773: CVE-2021-41773&CVE-2021-42013图形化漏洞检测利用工具]
  134. GitHub: https://github.com/wolf1892/CVE-2021-41773
    [CVE-2021-41773: Setup vulnerable enviornment]
  135. GitHub: https://github.com/zeronine9/CVE-2021-41773
    [CVE-2021-41773: Fast python tool to test apache path traversal CVE-2021-41773 in a List of url]
  136. GitHub: https://github.com/shellreaper/CVE-2021-41773
    [CVE-2021-41773: This is a simple POC for Apache/2.4.49 Path Traversal Vulnerability]
  137. GitHub: https://github.com/theLSA/apache-httpd-path-traversal-checker
    [CVE-2021-41773: Apache httpd path traversal checker(CVE-2021-41773 / CVE-2021-42013)]
  138. GitHub: https://github.com/walnutsecurity/cve-2021-41773
    [CVE-2021-41773: Cve-2021-41773.py is a python script that will help in finding Path Traversal or ...]
  139. GitHub: https://github.com/Zeop-CyberSec/apache_normalize_path
    [CVE-2021-41773: Metasploit-Framework modules (scanner and exploit) for the CVE-2021-41773 and ...]

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 Score Source [?]: CVE-2021-41773
CVSS V2 Vector: AV:N/AC:M/Au:N/C:P/I:N/A:N/E:H/RL:OF/RC:C
CVSS Base Score:4.3 (Medium)
Impact Subscore:2.9
Exploitability Subscore:8.6
CVSS Temporal Score:3.7 (Low)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:3.7 (Low)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N/E:H/RL:O/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:3.6
Exploitability Subscore:3.9
CVSS Temporal Score:7.2 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.2 (High)
STIG Severity [?]: II
STIG Risk Rating: Medium

Go back to menu.

Plugin Source


This is the freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl nessus plugin source code. This script is Copyright (C) 2021-2022 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 the FreeBSD VuXML database :
#
# Copyright 2003-2021 Jacques Vidrine and contributors
#
# Redistribution and use in source (VuXML) and 'compiled' forms (SGML,
# HTML, PDF, PostScript, RTF and so forth) with or without modification,
# are permitted provided that the following conditions are met:
# 1. Redistributions of source code (VuXML) must retain the above
#    copyright notice, this list of conditions and the following
#    disclaimer as the first lines of this file unmodified.
# 2. Redistributions in compiled form (transformed to other DTDs,
#    published online in any format, converted to PDF, PostScript,
#    RTF and other formats) must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer
#    in the documentation and/or other materials provided with the
#    distribution.
# 
# THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(153894);
  script_version("1.10");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/01/26");

  script_cve_id("CVE-2021-41524", "CVE-2021-41773");
  script_xref(name:"IAVA", value:"2021-A-0451-S");
  script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2021/11/17");

  script_name(english:"FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024)");

  script_set_attribute(attribute:"synopsis", value:
"The remote FreeBSD host is missing a security-related update.");
  script_set_attribute(attribute:"description", value:
"The Apache http server project reports :

- moderate: NULL pointer dereference in h2 fuzzing (CVE-2021-41524)

- important: Path traversal and file disclosure vulnerability in
Apache HTTP Server 2.4.49 (CVE-2021-41773)");
  script_set_attribute(attribute:"see_also", value:"https://httpd.apache.org/security/vulnerabilities_24.html");
  # https://vuxml.freebsd.org/freebsd/25b78bdd-25b8-11ec-a341-d4c9ef517024.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?86b69035");
  script_set_attribute(attribute:"solution", value:
"Update the affected package.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N");
  script_set_cvss_temporal_vector("CVSS2#E:H/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:N/A:N");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-41773");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Apache 2.4.49/2.4.50 Traversal RCE');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/10/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/10/05");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/10/06");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"p-cpe:/a:freebsd:freebsd:apache24");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:freebsd:freebsd");
  script_set_attribute(attribute:"generated_plugin", value:"current");
  script_set_attribute(attribute:"stig_severity", value:"II");
  script_end_attributes();

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

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

  script_dependencies("ssh_get_info.nasl");
  script_require_keys("Host/local_checks_enabled", "Host/FreeBSD/release", "Host/FreeBSD/pkg_info");

  exit(0);
}


include("audit.inc");
include("freebsd_package.inc");


if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/FreeBSD/release")) audit(AUDIT_OS_NOT, "FreeBSD");
if (!get_kb_item("Host/FreeBSD/pkg_info")) audit(AUDIT_PACKAGE_LIST_MISSING);


flag = 0;

if (pkg_test(save_report:TRUE, pkg:"apache24>=2.4.49<2.4.50")) flag++;

if (flag)
{
  if (report_verbosity > 0) security_warning(port:0, extra:pkg_report_get());
  else security_warning(0);
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl

Go back to menu.

How to Run


Here is how to run the FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select FreeBSD Local Security Checks plugin family.
  6. On the right side table select FreeBSD : Apache httpd -- Multiple vulnerabilities (25b78bdd-25b8-11ec-a341-d4c9ef517024) plugin ID 153894.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. 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 freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.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 freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl -t <IP/HOST>

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2021-A-0451-S
See also: Similar and related Nessus plugins:
  • 154179 - Amazon Linux 2 : httpd (ALAS-2021-1716)
  • 154188 - Amazon Linux AMI : httpd24 (ALAS-2021-1543)
  • 153885 - Apache HTTP Server 2.4.49 Path Traversal (CVE-2021-41773)
  • 153884 - Apache 2.4.49 < 2.4.50 Multiple Vulnerabilities

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file freebsd_pkg_25b78bdd25b811eca341d4c9ef517024.nasl version 1.10. For more plugins, visit the Nessus Plugin Library.

Go back to menu.