CVE-2020-1631 Out of Cycle Security Advisory: Junos OS: Security vulnerability in J-Web and web based (HTTP/HTTPS) services
주기 외 보안 권고: Junos OS: J-Web 및 웹 기반(HTTP/HTTPS) 서비스의 보안 취약점
설명
A vulnerability in the HTTP/HTTPS service used by J-Web, Web Authentication, Dynamic-VPN (DVPN), Firewall Authentication Pass-Through with Web-Redirect, and Zero Touch Provisioning (ZTP) allows an unauthenticated attacker to perform local file inclusion (LFI) or path traversal. Using this vulnerability, an attacker may be able to inject commands into the httpd.log, read files with 'world' readable permission file or obtain J-Web session tokens. In the case of command injection, as the HTTP service runs as user 'nobody', the impact of this command injection is limited. (CVSS score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) In the case of reading files with 'world' readable permission, in Junos OS 19.3R1 and above, the unauthenticated attacker would be able to read the configuration file. (CVSS score 5.9, vector CVSS:3.1/ AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) If J-Web is enabled, the attacker could gain the same level of access of anyone actively logged into J-Web. If an administrator is logged in, the attacker could gain administrator access to J-Web. (CVSS score 8.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) This issue only affects Juniper Networks Junos OS devices with HTTP/HTTPS services enabled. Junos OS devices with HTTP/HTTPS services disabled are not affected. If HTTP/HTTPS services are enabled, the following command will show the httpd processes: user@device> show system processes | match http 5260 - S 0:00.13 /usr/sbin/httpd-gk -N 5797 - I 0:00.10 /usr/sbin/httpd --config /jail/var/etc/httpd.conf To summarize: If HTTP/HTTPS services are disabled, there is no impact from this vulnerability. If HTTP/HTTPS services are enabled and J-Web is not in use, this vulnerability has a CVSS score of 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N). If J-Web is enabled, this vulnerability has a CVSS score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). Juniper SIRT has received a single report of this vulnerability being exploited in the wild. Out of an abundance of caution, we are notifying customers so they can take appropriate actions. Indicators of Compromise: The /var/log/httpd.log may have indicators that commands have injected or files being accessed. The device administrator can look for these indicators by searching for the string patterns "=*;*&" or "*%3b*&" in /var/log/httpd.log, using the following command: user@device> show log httpd.log | match "=*;*&|=*%3b*&" If this command returns any output, it might be an indication of malicious attempts or simply scanning activities. Rotated logs should also be reviewed, using the following command: user@device> show log httpd.log.0.gz | match "=*;*&|=*%3b*&" user@device> show log httpd.log.1.gz | match "=*;*&|=*%3b*&" Note that a skilled attacker would likely remove these entries from the local log file, thus effectively eliminating any reliable signature that the device had been attacked. This issue affects Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S16; 12.3X48 versions prior to 12.3X48-D101, 12.3X48-D105; 14.1X53 versions prior to 14.1X53-D54; 15.1 versions prior to 15.1R7-S7; 15.1X49 versions prior to 15.1X49-D211, 15.1X49-D220; 16.1 versions prior to 16.1R7-S8; 17.2 versions prior to 17.2R3-S4; 17.3 versions prior to 17.3R3-S8; 17.4 versions prior to 17.4R2-S11, 17.4R3-S2; 18.1 versions prior to 18.1R3-S10; 18.2 versions prior to 18.2R2-S7, 18.2R3-S4; 18.3 versions prior to 18.3R2-S4, 18.3R3-S2; 18.4 versions prior to 18.4R1-S7, 18.4R3-S2 ; 18.4 version 18.4R2 and later versions; 19.1 versions prior to 19.1R1-S5, 19.1R3-S1; 19.1 version 19.1R2 and later versions; 19.2 versions prior to 19.2R2; 19.3 versions prior to 19.3R2-S3, 19.3R3; 19.4 versions prior to 19.4R1-S2, 19.4R2; 20.1 versions prior to 20.1R1-S1, 20.1R2.
J-Web, Web Authentication, Dynamic-VPN (DVPN), Firewall Authentication Pass-Through with Web-Redirect, Zero Touch Provisioning (ZTP)에 의해 사용되는 HTTP/HTTPS 서비스의 취약점은 인증되지 않은 공격자가 로컬 파일 포함(LFI) 또는 경로 탐색을 수행할 수 있게 한다. 이 취약점을 이용해 공격자는 httpd.log에 명령어를 삽입하거나, 'world'로 읽을 수 있는 권한 파일을 읽거나, J-Web 세션 토큰을 얻을 수 있다. 명령 주입의 경우, HTTP 서비스가 'nobody' 사용자로 실행되므로, 이 명령 주입의 영향은 제한됩니다. (CVSS 점수 5.3, 벡터 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) 'world' 읽기 권한이 있는 파일을 읽는 경우 Junos OS 19.3R1 이상에서는 인증되지 않은 공격자가 구성 파일을 읽을 수 있습니다. (CVSS 점수 5.9, 벡터 CVSS:3.1/ AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) J-Web이 활성화되면 공격자는 J-Web에 적극적으로 로그인한 사람의 동일한 수준의 액세스를 얻을 수 있습니다. 관리자가 로그인하면 공격자가 J-Web에 대한 관리자 액세스를 얻을 수 있습니다. (CVSS 점수 8.8, 벡터 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) 이 문제는 HTTP/HTTPS 서비스가 활성화된 Juniper Networks Junos OS 장치에만 영향을 줍니다. HTTP/HTTPS 서비스를 사용하지 않는 Junos OS 장치는 영향을 받지 않습니다. HTTP/HTTPS 서비스를 사용하면 다음 명령으로 httpd 프로세스를 보여준다. user@device> show system processes match http 5260 - S 0:00.13 /usr/sbin/httpd-gk -N 5797 - I 0:00.10 /usr/sbin/httpd --config /jail/var/etc/httpd.conf 요약: HTTP/HTTPS 서비스가 비활성화되어 있으면 이 취약점이 발생하지 않는다. HTTP/HTTPS 서비스를 사용하도록 설정되어 있고 J-Web을 사용하지 않는 경우 이 취약점의 CVSS 점수는 5.9(CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N)입니다. J-Web이 활성화된 경우 이 취약점의 CVSS 점수는 8.8(CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)입니다. 주니퍼 SIRT는 이 취약점이 야생에서 악용되고 있다는 단일 보고서를 받았습니다. 충분한 주의를 바탕으로 고객에게 적절한 조치를 취할 수 있도록 통지합니다. 타협의 지표: /var/log/httpd.log에는 명령이 삽입되었거나 파일에 액세스하고 있는 지표가 있을 수 있습니다. 다음 명령을 사용하여 장치 관리자가 문자열 패턴 "=*;*&" 또는 "*%3b*&"를 검색하여 다음 표시를 찾을 수 있습니다. user@device> show log httpd.log match "=*;*&=*%3b*&" 이 명령은 출력을 반환하면 악의적인 시도 또는 검색 활동을 나타낼 수 있습니다. 다음 명령을 사용하여 회전된 로그도 검토해야 합니다. user@device> show log httpd.log.0.gz match "=*;*&=%3b*&" user@device> show log httpd.log.1.gz match "=*;*&=*%3b*&" 숙련된 공격자가 로컬 로그 파일에서 이러한 항목을 제거하여 효과적으로 장치를 공격한 것으로 나타났습니다. This issue affects Juniper Networks Junos OS 12.3 versions prior to 12.3R12-S16; 12.3X48 versions prior to 12.3X48-D101, 12.3X48-D105; 14.1X53 versions prior to 14.1X53-D54; 15.1 versions prior to 15.1R7-S7; 15.1X49 versions prior to 15.1X49-D211, 15.1X49-D220; 16.1 versions prior to 16.1R7-S8; 17.2 versions prior to 17.2R3-S4; 17.3 versions prior to 17.3R3-S8; 17.4 versions prior to 17.4R2-S11, 17.4R3-S2; 18.1 versions prior to 18.1R3-S10; 18.2 versions prior to 18.2R2-S7, 18.2R3-S4; 18.3 versions prior to 18.3R2-S4, 18.3R3-S2; 18.4 versions prior to 18.4R1-S7, 18.4R3-S2 ; 18.4 version 18.4R2 and later versions; 19.1 versions prior to 19.1R1-S5, 19.1R3-S1; 19.1 version 19.1R2 and later versions; 19.2 versions prior to 19.2R2; 19.3 versions prior to 19.3R2-S3, 19.3R3; 19.4 versions prior to 19.4R1-S2, 19.4R2; 20.1 versions prior to 20.1R1-S1, 20.1R2.
영향 받는 제품 제품 1개
-
해결 버전 있음
Juniper Networks
Junos OS
영향 받는 버전
- 12.3 이상 12.3R12-S16 미만
- 버전 정보 확인 필요
- 14.1X53 이상 14.1X53-D54 미만
- 15.1 이상 15.1R7-S7 미만
- 16.1 이상 16.1R7-S8 미만
- 17.2 이상 17.2R3-S4 미만
- 17.3 이상 17.3R3-S8 미만
- 18.1 이상 18.1R3-S10 미만
외 1개 구간 펼치기
- 19.2 이상 19.2R2 미만
해결 버전
- 12.3R12-S16 이상
- 14.1X53-D54 이상
- 15.1R7-S7 이상
- 16.1R7-S8 이상
- 17.2R3-S4 이상
- 17.3R3-S8 이상
- 18.1R3-S10 이상
- 19.2R2 이상