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

Juniper Networks Junos OS

Junos OS: SRX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload arbitrary files

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

A Missing Authentication for Critical Function vulnerability in Juniper Networks Junos OS on SRX Series allows an unauthenticated, network-based attacker to cause limited impact to the file system integrity. With a specific request to user.php that doesn't require authentication an attacker is able to upload arbitrary files via J-Web, leading to a loss of integrity for a certain  part of the file system, which may allow chaining to other vulnerabilities. This issue affects Juniper Networks Junos OS on SRX Series: * All versions prior to 20.4R3-S8; * 21.1 versions 21.1R1 and later; * 21.2 versions prior to 21.2R3-S6; * 21.3 versions prior to 21.3R3-S5; * 21.4 versions prior to 21.4R3-S5; * 22.1 versions prior to 22.1R3-S3; * 22.2 versions prior to 22.2R3-S2; * 22.3 versions prior to 22.3R2-S2, 22.3R3; * 22.4 versions prior to 22.4R2-S1, 22.4R3.

First public PoC 12 daysafter publication · 29 Aug 2023
Public PoCs11 on GitHub
CVSS5.3medium · scored by CNA · CWE-306
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 PoC29 Aug 2023 · t+12dAdded to CISA KEV13 Nov 2023 · t+88d

First public PoC 12 days after publication; added to CISA KEV 88 days after publication. First PoC: Chocapikk/CVE-2023-36846 (created 29 Aug 2023, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs · 1 pending · 1 not a PoC

PoCs 1
RepositoryCreatedStarsAssessment
Chocapikk/CVE-2023-36846 29 Aug 2023 +12 d 5 PoC
Pending 1
RepositoryCreatedStarsAssessment
Dreamy-elfland/CVE-2023-36846 unknown 0 Pending · repository unavailable (HTTP 404)
Not a PoC 1
RepositoryCreatedStarsAssessment
r3dcl1ff/CVE-2023-36844_Juniper_RCE 24 Sep 2023 +38 d 5 Not a PoC · unrelated

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

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

GET /webauth_operation.php

Query
PHPRC=/var/tmp/ 0=
Seen in
1 repo: Chocapikk/CVE-2023-36846
Evidence
Chocapikk/CVE-2023-36846/exploit.py:63

POST /webauth_operation.php

Body markers
rs=do_upload rsargs[0]=[{{"fileData":"data:text/html;base64, in application/x-www-form-urlencoded
Seen in
1 repo: Chocapikk/CVE-2023-36846
Evidence
Chocapikk/CVE-2023-36846/exploit.py:34 Chocapikk/CVE-2023-36846/exploit.py:53

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/.*0=
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-36846 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/"; http.uri; content:"0="; reference:url,poc.griffinguard.io/cve/CVE-2023-36846; classtype:web-application-attack; sid:9684618; rev:1;)
POST /webauth_operation.php
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-36846 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,"; reference:url,poc.griffinguard.io/cve/CVE-2023-36846; classtype:web-application-attack; sid:9296138; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

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