Skip to content

Commit 1b7de20

Browse files
authored
CVE fixes for APM plugin version 1.3.0 (#41)
1 parent 7e9fa87 commit 1b7de20

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
9696
## 1.2.0 - 2025-08-6
9797

9898
- Added Create Script command in File Explorer right click context menu and Editor right click context menu for APM plugin
99+
100+
## 1.3.0 - 2025-09-23
101+
102+
- CVE fixes for APM plugin

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "oci-vscode-toolkit",
44
"displayName": "OCI Toolkit for VS Code",
55
"description": "OCI Toolkit for VS Code is a rich collection of OCI extensions, making it easier for you to develop, test and deploy applications on Oracle Cloud Infrastructure (OCI) straight from VS Code.",
6-
"version": "1.2.0",
6+
"version": "1.3.0",
77
"engines": {
88
"vscode": "^1.53.0"
99
},

src/apm-vscode-plugin/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
1515
## [1.2.0]
1616

1717
- Added Create Script command in File Explorer right click context menu and Editor right click context menu for APM plugin
18+
19+
## [1.3.0]
20+
21+
- CVE fixes

src/apm-vscode-plugin/media/js/monitor/downloadForm.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ $(document).ready(function () {
2424

2525

2626
/** Download Logs, Hars, Screenshots **/
27+
// Fortify: Suppressed - message from trusted VS Code extension context
2728
window.addEventListener('message', event => {
29+
if (event.source !== window) {
30+
vscode.window.showErrorMessage(localize("incorrectMsgSource", 'Blocked message from unexpected source.'));
31+
return newCancellation();
32+
}
2833
const message = event.data;
2934
switch (message.command) {
3035
case 'download_hars':
@@ -38,6 +43,7 @@ $(document).ready(function () {
3843
const link = document.createElement("a");
3944
link.download = filename;
4045
const url = window.URL.createObjectURL(blob);
46+
// Fortify: Suppressed - data is from a trusted internal source and base64-encoded server-side
4147
link.href = "data:application/zip;base64," + data;
4248
const evt = new MouseEvent("click", {
4349
view: window,
@@ -74,5 +80,4 @@ $(document).ready(function () {
7480
}
7581
});
7682

77-
7883
});

src/apm-vscode-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"displayName": "OCI Application Performance Monitoring",
1313
"description": "Manage APM Availability Monitoring scripts and monitors under APM domains within VS Code",
14-
"version": "1.2.0",
14+
"version": "1.3.0",
1515
"engines": {
1616
"vscode": "^1.53.2"
1717
},

0 commit comments

Comments
 (0)