[SERVER-43166] auditFormat BSON writes incomplete bson Created: 04/Sep/19  Updated: 29/Oct/23  Resolved: 10/Sep/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.0
Fix Version/s: 4.2.1, 4.3.1

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Duplicate
is duplicated by SERVER-44956 Audit trail corrupt on Mac OSX Catalina Closed
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Security 2019-09-23
Participants:
Case:

 Description   

When auditFormat BSON is used, a BSONObj is converted to std::string via const char* string. A const char* string's length is computed based on a null byte, this may lead to incorrect results for BSONObjs.



 Comments   
Comment by Githook User [ 16/Sep/19 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-43166 Fix auditing to BSON

(cherry picked from commit 69d462c638178f697d2addaa27c453b52fcad007)
Branch: v4.2
https://github.com/10gen/mongo-enterprise-modules/commit/d6f742e24857e71be49908d4b053cd514c7bcf66

Comment by Githook User [ 10/Sep/19 ]

Author:

{'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com', 'name': 'Mark Benvenuto'}

Message: SERVER-43166 Fix auditing to BSON
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/69d462c638178f697d2addaa27c453b52fcad007

Generated at Thu Feb 08 05:02:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.