PoC Monitor
← All CVEs
CVE-2023-36844published 17 Aug 2023 19:17 UTCData: JSON · API

Juniper Networks Junos OS

Junos OS: EX Series: A PHP vulnerability in J-Web allows an unauthenticated attacker to control important environment variables

Edge device · Router / network deviceknown edge product: Juniper Networks Junos OS Junos OS: EX Series: (high confidence)

A PHP External Variable Modification vulnerability in J-Web of Juniper Networks Junos OS on EX Series allows an unauthenticated, network-based attacker to control certain, important environment variables. Using a crafted request an attacker is able to modify certain PHP environment variables leading to partial loss of integrity, which may allow chaining to other vulnerabilities. This issue affects Juniper Networks Junos OS on EX Series: * All versions prior to 20.4R3-S9; * 21.1 versions 21.1R1 and later; * 21.2 versions prior to 21.2R3-S7; * 21.3 versions prior to 21.3R3-S5; * 21.4 versions prior to 21.4R3-S5; * 22.1 versions prior to 22.1R3-S4; * 22.2 versions prior to 22.2R3-S2; * 22.3 versions prior to 22.3R3-S1; * 22.4 versions prior to 22.4R2-S2, 22.4R3; * 23.2 versions prior to 23.2R1-S1, 23.2R2.

First public PoC 7.5 daysafter publication · 25 Aug 2023
Public PoCs65 on GitHub · 1 Exploit-DB, Metasploit or nuclei
CVSS5.3medium · scored by CNA · CWE-473
CISA KEV 13 Nov 202388 days after publication

Timeline

Days relative to CVE publication
t=0+14+28+42+56+70+84CVE published17 Aug 2023 · t = 0First public PoC25 Aug 2023 · t+7.5dAdded to CISA KEV13 Nov 2023 · t+88d

First public PoC 7.5 days after publication; added to CISA KEV 88 days after publication. First PoC: watchtowrlabs/juniper-rce_cve-2023-36844 (created 25 Aug 2023, found by us: backfilled).

PoC repositories

Found on GitHub.

5 PoCs

PoCs 5
RepositoryCreatedStarsAssessment
watchtowrlabs/juniper-rce_cve-2023-36844 25 Aug 2023 +7.5 d 114 PoC
Ap0dexMe0/CVE-2023-36844 20 Sep 2023 +33 d 0 PoC
Pari-Malam/CVE-2023-36844 20 Sep 2023 +33 d 0 PoC
ThatNotEasy/CVE-2023-36844 20 Sep 2023 +33 d 0 PoC
r3dcl1ff/CVE-2023-36844_Juniper_RCE 24 Sep 2023 +38 d 5 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.
SourceTitlePublishedFound by us
nuclei templatenuclei template: Juniper Devices - Remote Code Executionunknown14 Nov 2026

PoC characteristics

What to hunt for in your logs · from 5 PoC repos

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

GET /webauth_operation.php
(?i)^/webauth_operation\.php\?(?:.*&)?PHPRC=/var/tmp/
POST /webauth_operation.php
(?i)^/webauth_operation\.php(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /webauth_operation.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36844 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/webauth_operation.php"; http.uri; content:"PHPRC=/var/tmp/"; reference:url,poc.griffinguard.io/cve/CVE-2023-36844; classtype:web-application-attack; sid:9667468; rev:1;)
POST /webauth_operation.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36844 Juniper Networks Junos OS exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/webauth_operation.php"; http.request_body; content:"rs=do_upload"; http.request_body; content:"rsargs[0]=[{|22|fileData|22|:|22|data:text/html|3b|base64,"; http.request_body; content:"rsargs[0]=[{|22|fileData|22|:|22|data:plain/text|3b|base64,"; reference:url,poc.griffinguard.io/cve/CVE-2023-36844; classtype:web-application-attack; sid:9185988; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

GET /webauth_operation.php
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36844)
id: gg-pocmon-cve-2023-36844-9667468
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36844. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-36844
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/webauth_operation.php'
    cs-uri-query|contains|all:
      - 'PHPRC=/var/tmp/'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.36844
POST /webauth_operation.php
title: Juniper Networks Junos OS exploit attempt (CVE-2023-36844)
id: gg-pocmon-cve-2023-36844-9185988
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-36844. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-36844
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/webauth_operation.php'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.36844