Skip to content

Commit 02a8701

Browse files
committed
finalized for release
1 parent 0e30bb1 commit 02a8701

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ColdBox Security",
3-
"version":"3.6.1",
3+
"version":"3.7.0",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbsecurity/@build.version@/cbsecurity-@build.version@.zip",
55
"author":"Ortus Solutions.com <info@ortussolutions.com>",
66
"slug":"cbsecurity",

changelog.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Changed
13+
14+
- Increased VARCHAR field sizes in `DBLogger` table schema to accommodate longer URLs and user agent strings. Fields `host`, `path`, `queryString`, `referer`, and `userAgent` now use VARCHAR(1024) to prevent truncation of data.
15+
- Updated `DBLogger` insert statements to truncate `host`, `path`, `queryString`, `referer`, and `userAgent` values to 1024 characters using `left()` function to prevent database errors.
16+
1217
### Fixed
1318

1419
- Allow for sub-modules to load AFTER cbsecurity loads.
15-
- Make sure the jwt toke is not null when doing discovery in the JwtService.
20+
- Make sure the jwt token is not null when doing discovery in the JwtService.
21+
- Fixed `isSafeRedirectUrl()` host comparison for non-default ports by stripping port from host before comparing with URI host.
22+
- ACF Compatibility: Fixed `dateTimeFormat` usage for `logDate` in activity view to prevent conversion errors in Adobe ColdFusion.
1623

17-
### Changed
24+
### Added
1825

19-
- Increased VARCHAR field sizes in `DBLogger` table schema to accommodate longer URLs and user agent strings. Fields `host`, `path`, `queryString`, `referer`, and `userAgent` now use VARCHAR(1024) to prevent truncation of data.
26+
- Added `TokenRejectionException` handling in JWT handler to properly handle token rejection errors.
27+
- Updated JWT handler error message calls to match specification.
28+
- Added test cases for non-default port scenarios in `isSafeRedirectUrl()` validation.
29+
- Added test validation for JWT response messages.
2030

2131
## [3.6.0] - 2025-12-08
2232

models/util/DBLogger.cfc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ component accessors="true" singleton threadsafe {
159159
action : { cfsqltype : "varchar", value : arguments.action },
160160
blockType : { cfsqltype : "varchar", value : arguments.blockType },
161161
ip : { cfsqltype : "varchar", value : arguments.ip },
162-
host : { cfsqltype : "varchar", value : arguments.host },
162+
host : { cfsqltype : "varchar", value : left( arguments.host, 1024 ) },
163163
httpMethod : { cfsqltype : "varchar", value : arguments.httpMethod },
164-
path : { cfsqltype : "varchar", value : arguments.path },
165-
queryString : { cfsqltype : "varchar", value : arguments.queryString },
166-
referer : { cfsqltype : "varchar", value : arguments.referer },
167-
userAgent : { cfsqltype : "varchar", value : arguments.userAgent },
164+
path : { cfsqltype : "varchar", value : left( arguments.path, 1024 ) },
165+
queryString : { cfsqltype : "varchar", value : left( arguments.queryString, 1024 ) },
166+
referer : { cfsqltype : "varchar", value : left( arguments.referer, 1024 ) },
167+
userAgent : { cfsqltype : "varchar", value : left( arguments.userAgent, 1024 ) },
168168
userId : { cfsqltype : "varchar", value : arguments.userId },
169169
rule : {
170170
cfsqltype : "longvarchar",

0 commit comments

Comments
 (0)