cbcvebase.
CVE-2023-36846
published 2023-08-17

CVE-2023-36846: A Missing Authentication for Critical Function vulnerability in Juniper Networks Junos OS on SRX Series allows an unauthenticated, network-based attacker to…

PriorityP186medium5.3CVSS 3.1
AVNACLPRNUINSUCNILAN
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2023-11-17
Exploited in the wild
EPSS
94.21%
99.8th percentile
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.

Affected

22 ranges
VendorProductVersion rangeFixed in
juniperj-web
juniperjunos< 20.420.4
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos
juniperjunos_os
junipersrx_series
juniper_networksjunos_os< 20.4R3-S820.4R3-S8
juniper_networksjunos_os>= 21.1 < 21.1*21.1*
juniper_networksjunos_os>= 21.2 < 21.2R3-S621.2R3-S6
juniper_networksjunos_os>= 21.3 < 21.3R3-S521.3R3-S5
juniper_networksjunos_os>= 21.4 < 21.4R3-S521.4R3-S5
juniper_networksjunos_os>= 22.1 < 22.1R3-S322.1R3-S3
juniper_networksjunos_os>= 22.2 < 22.2R3-S222.2R3-S2
juniper_networksjunos_os>= 22.3 < 22.3R2-S2, 22.3R322.3R2-S2, 22.3R3
juniper_networksjunos_os>= 22.4 < 22.4R2-S1, 22.4R322.4R2-S1, 22.4R3

Detection & IOCsextracted from sources · hover to see the quote

path/webauth_operation.php
pathuser.php
commandrs=do_upload&rsargs[]=[{"fileData": "data:text/html;base64,<payload>", "fileName": "<rand>.php", "csize": <len>}]
commandrs=do_upload&rsargs[]=[{"fileName": "<rand>.ini", "fileData": "data:text/html;base64,<auto_prepend_file=/var/tmp/<phpfile>>", "csize": "97"}]
commandGET /webauth_operation.php?PHPRC=/var/tmp/<inifile>
othershodan-query: title:"Juniper Web Device Manager"
  • Monitor for unauthenticated POST requests to /webauth_operation.php with the 'rs=do_upload' parameter, which is the file upload vector used in the exploit chain.
  • Detect GET requests to /webauth_operation.php containing the PHPRC query parameter pointing to /var/tmp/, which is used to load a malicious .ini file and trigger PHP code execution.
  • Alert on unauthenticated requests to user.php on Juniper SRX J-Web interfaces, as this endpoint is the specific target for unauthenticated file upload (CVE-2023-36846).
  • The exploit chain requires uploading two files (a .php payload and a .ini config with auto_prepend_file directive) — detecting either upload to /var/tmp/ via J-Web is a strong indicator of compromise.
  • ShadowServer and GreyNoise have observed active probing of Junos OS endpoints; correlate inbound J-Web traffic spikes against these threat intel feeds for early warning.
  • ·CVE-2023-36846 alone has a medium CVSS score (5.3) but becomes critical (9.8) when chained with CVE-2023-36844/36845/36847. Detection and patching priority should reflect the chained severity, not the standalone score.
  • ·VulnCheck demonstrated that CVE-2023-36845 alone (without CVE-2023-36846 file upload) can achieve RCE via PHPRC/auto_prepend_file/allow_url_include and the data:// protocol, bypassing the need to upload files entirely.
  • ·The Nuclei PoC template targets /webauth_operation.php (do_upload function), but older SRX devices (e.g., SRX210) may lack the do_fileUpload() function, meaning the watchTowr chain may not work on all hardware — but the single-CVE VulnCheck method may still apply.
  • ·As a temporary mitigation if patching is not immediately possible, restrict J-Web access to trusted network hosts only to eliminate the internet-exposed attack vector.

CVSS provenance

nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vulncheck5.3MEDIUM
cisa5.3MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.