diff --git a/CHANGELOG.MD b/CHANGELOG.MD index cb8896bae..2076c7152 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.2] - 2023-11-17 + +### Changed + +- Adjusted channel size to help with TOCTTOU issue + ## [3.2.1] - 2023-11-17 ### Changed diff --git a/MythicReactUI/src/index.js b/MythicReactUI/src/index.js index a5ff41f34..97aead76a 100644 --- a/MythicReactUI/src/index.js +++ b/MythicReactUI/src/index.js @@ -14,7 +14,7 @@ import {snackActions} from './components/utilities/Snackbar'; import jwt_decode from 'jwt-decode'; import {meState} from './cache'; -export const mythicVersion = "3.2.0"; +export const mythicVersion = "3.2.2"; export const mythicUIVersion = "0.1.31"; let fetchingNewToken = false; diff --git a/VERSION b/VERSION index 0444f3207..acf9bf09d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.1 \ No newline at end of file +3.2.2 \ No newline at end of file diff --git a/mythic-docker/src/rabbitmq/util_agent_message_actions_post_response.go b/mythic-docker/src/rabbitmq/util_agent_message_actions_post_response.go index f4e81e160..907611899 100644 --- a/mythic-docker/src/rabbitmq/util_agent_message_actions_post_response.go +++ b/mythic-docker/src/rabbitmq/util_agent_message_actions_post_response.go @@ -205,7 +205,7 @@ type writeDownloadChunkToDisk struct { ChunksWritten chan int } -var writeDownloadChunkToDiskChan = make(chan writeDownloadChunkToDisk, 1) +var writeDownloadChunkToDiskChan = make(chan writeDownloadChunkToDisk) func handleAgentMessagePostResponse(incoming *map[string]interface{}, uUIDInfo *cachedUUIDInfo) (map[string]interface{}, error) { // got message: @@ -897,6 +897,7 @@ func handleAgentMessagePostResponseDownload(task databaseStructs.Task, agentResp //base64DecodedFileData := make([]byte, base64.StdEncoding.DecodedLen(len(*agentResponse.Download.ChunkData))) //totalBase64Bytes, err := base64.StdEncoding.Decode(base64DecodedFileData, []byte(*agentResponse.Download.ChunkData)) if err != nil { + logging.LogError(err, "Failed to base64 decode data to write to disk, bailing out") return "", err } //logging.LogDebug("0. about to have mythic write to disk", "chunk num", *agentResponse.Download.ChunkNum, "byte sample", string(base64DecodedFileData[:10])) diff --git a/mythic-react-docker/mythic/public/asset-manifest.json b/mythic-react-docker/mythic/public/asset-manifest.json index 55d4e408a..71bf40d45 100644 --- a/mythic-react-docker/mythic/public/asset-manifest.json +++ b/mythic-react-docker/mythic/public/asset-manifest.json @@ -1,15 +1,15 @@ { "files": { "main.css": "/new/static/css/main.00d51b79.css", - "main.js": "/new/static/js/main.23a6754b.js", + "main.js": "/new/static/js/main.5660a092.js", "static/media/mythic@2x.png": "/new/static/media/mythic@2x.7c5b62b471ac779fd706.png", "static/media/mythic_red_small.svg": "/new/static/media/mythic_red_small.793b41cc7135cdede246661ec232976b.svg", "index.html": "/new/index.html", "main.00d51b79.css.map": "/new/static/css/main.00d51b79.css.map", - "main.23a6754b.js.map": "/new/static/js/main.23a6754b.js.map" + "main.5660a092.js.map": "/new/static/js/main.5660a092.js.map" }, "entrypoints": [ "static/css/main.00d51b79.css", - "static/js/main.23a6754b.js" + "static/js/main.5660a092.js" ] } \ No newline at end of file diff --git a/mythic-react-docker/mythic/public/index.html b/mythic-react-docker/mythic/public/index.html index 3d5f35f35..b36430285 100644 --- a/mythic-react-docker/mythic/public/index.html +++ b/mythic-react-docker/mythic/public/index.html @@ -1 +1 @@ -