FreeBSD 8.1 openpam_configure.c pam_start service_name path traversal
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
7.6 | $0-$5k | 0.00 |
A vulnerability was found in FreeBSD 8.1 (Operating System). It has been rated as critical. Affected by this issue is the function pam_start
of the file openpam_configure.c. The manipulation of the argument service_name
with an unknown input leads to a path traversal vulnerability. Using CWE to declare the problem leads to CWE-22. The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Impacted is confidentiality, integrity, and availability. CVE summarizes:
Directory traversal vulnerability in openpam_configure.c in OpenPAM before r478 on FreeBSD 8.1 allows local users to load arbitrary DSOs and gain privileges via a .. (dot dot) in the service_name argument to the pam_start function, as demonstrated by a .. in the -c option to kcheckpass.
The weakness was disclosed 11/17/2011 (Website). The advisory is available at openwall.com. This vulnerability is handled as CVE-2011-4122 since 10/18/2011. Local access is required to approach this attack. No form of authentication is required for exploitation. Technical details as well as a public exploit are known. This vulnerability is assigned to T1006 by the MITRE ATT&CK project.
A public exploit has been developed in Perl. The exploit is available at securityfocus.com. It is declared as proof-of-concept. As 0-day the estimated underground price was around $5k-$25k. The vulnerability scanner Nessus provides a plugin with the ID 57740 (FreeBSD : FreeBSD -- pam_ssh() does not validate service names (e51d5b1a-4638-11e1-9f47-00e0815b8da8)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family FreeBSD Local Security Checks.
Upgrading to version 8.1 eliminates this vulnerability.
The vulnerability is also documented in the databases at X-Force (71205) and Tenable (57740). The entry 59892 is pretty similar.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 8.4VulDB Meta Temp Score: 7.6
VulDB Base Score: 8.4
VulDB Temp Score: 7.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
AV | AC | Au | C | I | A |
---|---|---|---|---|---|
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
---|---|---|---|---|---|
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Path traversalCWE: CWE-22
ATT&CK: T1006
Local: Yes
Remote: No
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Programming Language: 🔍
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Nessus ID: 57740
Nessus Name: FreeBSD : FreeBSD -- pam_ssh() does not validate service names (e51d5b1a-4638-11e1-9f47-00e0815b8da8)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍
OpenVAS ID: 70740
OpenVAS Name: FreeBSD Ports: FreeBSD
OpenVAS File: 🔍
OpenVAS Family: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: FreeBSD 8.1
Timeline
10/18/2011 🔍11/09/2011 🔍
11/09/2011 🔍
11/09/2011 🔍
11/17/2011 🔍
11/17/2011 🔍
01/31/2012 🔍
02/07/2012 🔍
03/23/2015 🔍
11/26/2021 🔍
Sources
Product: freebsd.orgAdvisory: openwall.com
Status: Not defined
Confirmation: 🔍
CVE: CVE-2011-4122 (🔍)
X-Force: 71205
Vulnerability Center: 34406 - OpenPAM Before r478 on FreeBSD 8.1 pam_start() Allows Local Privileges Escalation, High
SecurityFocus: 50607 - OpenPAM 'pam_start()' Local Privilege Escalation Vulnerability
Secunia: 46756 - OpenPAM Service Name Privilege Escalation Security Issue, Less Critical
OSVDB: 76945
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 03/23/2015 16:50Updated: 11/26/2021 15:03
Changes: 03/23/2015 16:50 (66), 04/09/2017 14:31 (16), 11/26/2021 15:03 (3)
Complete: 🔍
No comments yet. Languages: en.
Please log in to comment.