Skip to content

Fix issues from the security audit#7

Open
hintsanp wants to merge 8 commits into
masterfrom
BRAINSTORM-3396
Open

Fix issues from the security audit#7
hintsanp wants to merge 8 commits into
masterfrom
BRAINSTORM-3396

Conversation

@hintsanp

@hintsanp hintsanp commented Jun 5, 2026

Copy link
Copy Markdown

Fix few issues from the security audit in SmartMet server code. These follow the suggested order at the end of BRAINSTORM-3396.

hintsanp added 8 commits June 5, 2026 12:13
Fixes finding C5 in BRAINSTORM-3396.
Fixes findings M2 and M3 in BRAINSTORM-3396.
Relocate password reading into a separate function and change the
logic to use standard ifstream.

Fixes finding M5 in BRAINSTORM-3396.
Add test harness for building and running server unit tests.  The
harness is a bit kludgy due to the fact that the server functions are
not build into a library.  Also, recursive Makefiles make dependency
handling difficult.

Add tests for readPassword utility function.
This reverts commit cb7706c.

Running unit tests in CircleCI requires more effort than it is worth, so
revert them.
std::string::substr is called with wrong arguments; fix that.

Fixes finding L4 in BRAINSTORM-3396.
At its end, the main function enters a loop where it waits for
signals.  There, select function with empty file descriptor sets is
used to emulate usleep/nanosleep.  This commit replaces select and its
elaborate error handling with sleep_for.

Fixes finding L7 in BRAINSTORM-3396.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant