Skip to content

fix errors - #785

Merged
joecare99 merged 10 commits into
joecare99:masterfrom
ChristianRosewich:master
Aug 12, 2026
Merged

fix errors#785
joecare99 merged 10 commits into
joecare99:masterfrom
ChristianRosewich:master

Conversation

@ChristianRosewich

Copy link
Copy Markdown
Contributor

No description provided.

deroschr and others added 10 commits August 12, 2026 12:06
Mitigate critical and medium security risks found during audit.\n\n- Switch GenFreeWin updater download from HTTP to HTTPS.\n- Remove hardcoded SMTP credentials, require environment-based secrets, and enforce TLS SMTP on port 587.\n- Restrict Fronius gateway CORS to known localhost browser origins.\n- Remove unauthenticated per-request host override from snapshot endpoints to eliminate SSRF vector.\n- Update gateway/browser READMEs to reflect hardened endpoint usage.\n\nKnown remaining risk: updater execution still lacks signature/hash verification and should be addressed in a follow-up hardening change.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ity-audit-fixes

fix: harden updater, SMTP, and gateway surfaces
Resolve the remaining CodeQL severity=error alerts that were reviewed in this pass.

- Replace non-short-circuit boolean logic with short-circuit checks in GenFreeWin UI/view-model code.
- Use whitespace-safe string guards for the affected conditionals.
- Fix the Avalonia screen equality check to avoid reference-only comparison semantics.

This commit continues the CodeQL remediation work for PR #20.
Broaden the CodeQL remediation pass to the next verified severity=error alerts across the repo.

- Implement equality members for classes flagged by cs/class-missing-equals.
- Correct invalid string formatting in the statistics and formatting examples.
- Harden thread-safe access in JC-AMS station lookup/update paths.
- Keep the existing security remediation branch moving toward a clean CodeQL run.

This continues the CodeQL work for issue #20.
Address the next batch of CodeQL error alerts across GenFreeWin.

- Replace remaining non-short-circuit boolean logic with short-circuit operators.
- Preserve the intended learning example formatting string in TestStatements.
- Continue the repo-wide CodeQL remediation work tracked by issue #20.
Address the next batch of CodeQL error alerts in the GenFreeWin print flow.

- Replace the remaining non-short-circuit boolean checks with short-circuit operators.
- Keep the explicit self-assignment in Anzeige as a documented learning exercise.
- Continue the repo-wide CodeQL remediation work tracked by issue #20.
Address the next non-GenFreeWin CodeQL error alerts.

- Mark unused computed values in the render demo as intentionally discarded.
- Reduce precision-loss warnings in console display examples by using byte-range values.
- Clean up unused collection output in AsteroidsModernEngine tests.
- Preserve the ongoing CodeQL remediation trail for issue #20.
Address the next verified CodeQL alerts outside the previous batches.

- Complete the custom draw operation equality implementation in the render demo.
- Remove the explicit self-assignment that was already documented as a learning exercise.
- Continue the issue #20 CodeQL remediation stream.
Address the next verified error-class CodeQL alerts across the broader repo.

- Clamp color calculations in console demo code to avoid precision-loss issues.
- Mark intentionally persistent collections as readonly and simplify test fixtures.
- Replace a non-short-circuit loop guard and a bitwise XML writer flag check.
- Continue the issue #20 CodeQL remediation stream.
…ity-audit-fixes

Christianrosewich security audit fixes
@joecare99
joecare99 merged commit ef89634 into joecare99:master Aug 12, 2026
1 check failed
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.

2 participants