CVE-2020-1631 の詳細
CVEの情報
説明:
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.
CVE更新日: 2020-05-04 10:15:10.890000
CVSSバージョン: 3.1
CVSSスコア: 8.8
KEVの情報
KEV更新日: 2022-03-25
EPSSの情報
EPSSは脆弱性が今後30日以内に悪用される確率を予測するスコアリングシステムで、FIRST(Forum of Incident Response and Security Teams)が提供しています。
EPSSのスコアが高いということは、攻撃されるリスクが高いことを意味するので、早めの対策が必要です。
EPSSスコア: 0.048430000
EPSS更新日: 2026-10-16 00:00:00
SSVCの情報
SSVCはカーネギーメロン大学ソフトウェア工学研究所が提案する脆弱性の評価手法です。ステークホルダーごとに脆弱性対応の優先度を決定することを支援します。
本サイトでは、CVE、KEV、EPSSの内容からExploitation(悪用状況)、Technical Impact(技術的影響)、Automatable(自動攻撃の可否)を判定します。
Exploitation: active
Technical Impact: high
Automatable: False
CVE-2020-1631は、Juniper Networks Junos OSのJ-WebおよびWebベースのHTTP/HTTPSサービスにおけるローカルファイルインクルージョン(LFI)およびパストラバーサル(ディレクトリトラバーサル)の脆弱性です。
1. 脆弱性の概要
Juniper Networks Junos OSのHTTP/HTTPSサービス(J-Web、Web認証、Dynamic-VPN (DVPN)、Webリダイレクトを伴うファイアウォール認証パススルー、Zero Touch Provisioning (ZTP) で使用される)に、認証されていない攻撃者がローカルファイルインクルージョン(LFI)またはパストラバーサルを実行できる脆弱性が存在します。この脆弱性を悪用されると、攻撃者は
httpd.logファイルへのコマンドインジェクション、世界読み取り可能なファイルの読み取り、またはJ-Webセッショントークンの取得が可能になります。J-Webが有効な状態で管理者がログインしている場合、攻撃者はJ-Webへの管理者権限を取得する可能性があります。さらに、特定の条件下では、リモートコード実行(RCE)に繋がり、デバイスが乗っ取られる危険性があります。この脆弱性は実環境で悪用されたことが報告されており、CISAのKnown Exploited Vulnerabilitiesリストに追加されています。1.1 影響
脆弱性の影響は、Junos OSデバイスの設定によって異なります。 * HTTP/HTTPSサービスが無効な場合: 影響はありません。 * HTTP/HTTPSサービスが有効でJ-Webが使用されていない場合: 世界読み取り可能なファイルを読み取る可能性があります。Junos OS 19.3R1以降では、設定ファイルを読み取られる危険性があります。 * J-Webが有効な場合: 攻撃者は
httpd.logへのコマンドインジェクション、世界読み取り可能なファイルの読み取り、J-Webセッショントークンの取得が可能になります。管理者がログインしている場合、J-Webへの管理者権限を取得し、リモートコード実行(RCE)によってデバイスを制御される危険性があります。1.2 深刻度
CVSS v3.1スコアは設定によって異なりますが、最大で9.8(Critical)と評価されています。 * 世界読み取り可能なファイルの読み取りの場合: CVSS 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) または 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) * J-Webが有効な場合: 当初はCVSS 8.8 (AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) とされていましたが、ユーザーインタラクションが不要であることが確認されたため、後にCVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) に更新されました。 この脆弱性は、「高危」または「重大」な脆弱性として分類されています。
2. 対象となる環境
2.1 影響を受けるOSバージョン
この脆弱性は、Juniper Networks Junos OSに影響を与えます。影響を受けるJunos OSのバージョンは以下の通りです。 * 12.3バージョン (12.3R12-S16より前のバージョン) * 12.3X48バージョン (12.3X48-D101、12.3X48-D105より前のバージョン) * 14.1X53バージョン (14.1X53-D54より前のバージョン) * 15.1バージョン (15.1R7-S7より前のバージョン) * 15.1X49バージョン (15.1X49-D211、15.1X49-D220より前のバージョン) * 15.1X53バージョン (15.1X53-D593より前のバージョン) * 16.1バージョン (16.1R7-S8より前のバージョン) * 17.2バージョン (17.2R3-S4より前のバージョン) * 17.3バージョン (17.3R3-S8より前のバージョン) * 17.4バージョン (17.4R2-S11、17.4R3-S2より前のバージョン) * 18.1バージョン (18.1R3-S10より前のバージョン) * 18.2バージョン (18.2R2-S7、18.2R3-S4より前のバージョン) * 18.3バージョン (18.3R2-S4、18.3R3-S2より前のバージョン) * 18.4バージョン (18.4R1-S7、18.4R3-S2より前のバージョン、および18.4R2以降のバージョン) * 19.1バージョン (19.1R1-S5、19.1R3-S1より前のバージョン、および19.1R2以降のバージョン) * 19.2バージョン (19.2R2より前のバージョン) * 19.3バージョン (19.3R2-S3、19.3R3より前のバージョン) * 19.4バージョン (19.4R1-S2、19.4R2より前のバージョン) * 20.1バージョン (20.1R1-S1、20.1R2より前のバージョン)
2.2 影響を受ける設定
この問題は、HTTP/HTTPSサービスが有効になっているJuniper Networks Junos OSデバイスにのみ影響します。HTTP/HTTPSサービスが無効なJunos OSデバイスは影響を受けません。
3. 影響を受けた時の兆候
攻撃の兆候は
/var/log/httpd.logファイルに、コマンドインジェクションやファイルアクセスを示す形で現れる可能性があります。デバイス管理者は、user@device> show log httpd.gz | match "=*;*&|=*%3b*&"コマンドを使用して、"=;&"または"%3b&"の文字列パターンを検索することで、これらの兆候を確認できます。ただし、巧妙な攻撃者はこれらのログエントリを削除する可能性があるため、注意が必要です。4. 推奨対策
4.1 本対策
Juniper Networksは、この脆弱性を修正したJunos OSのバージョンをリリースしています。影響を受けるデバイスをできるだけ早く修正済みのリリースにアップグレードすることが強く推奨されます。
4.2 暫定回避策(緩和策)
直ちにアップグレードできない場合、以下の暫定的な回避策を講じることができます。 * HTTP/HTTPSサービスを無効にする: 不要な場合は、HTTP/HTTPSサービスを無効にすることで、この脆弱性の影響を完全に回避できます。 * 以下のコマンドでHTTP/HTTPSサービスおよびDVPN(設定されている場合)を無効化できます。
deactivate system services web-management deactivate security dynamic-vpn commit* ログの監視:/var/log/httpd.logファイルで疑わしいパターン("=;&"や"%3b&"など)を監視します。 * 厳格なアクセス制御の実装: デバイスへのアクセス制御を強化します。 * ログの定期的なレビューとローテーション: ログを定期的に確認し、ローテーションすることで、不正な活動の早期発見に繋げます。 * J-Webアクセスの制限と強力な認証の使用: J-Webへのアクセスを制限し、強力な認証メカニズムを使用します。参照したサイト