Skip to content

Fix: do not expose server error messages in example (Snyk) - #75

Merged
reeshika-h merged 5 commits into
masterfrom
fix/snyk-info-exposure
Nov 2, 2026
Merged

reeshika-h merged 5 commits into
masterfrom
fix/snyk-info-exposure

Conversation

@reeshika-h

Copy link
Copy Markdown
Contributor

Summary

Resolves DX-23092 to DX-23094 (information exposure through server error messages in examples/index.php). The example now logs exception details with error_log(), shows a generic message, and sets display_errors off. (This also fixes print_r($e->getErrors()) printing directly to the page.) Example file only; no version bump.

Verification

  • snyk code test: 3 → 0; snyk test: 0.
  • PHP tests not run (no PHP available in the environment); the change is a few lines in an example.

🤖 Generated with Claude Code

OMpawar-21 and others added 4 commits July 29, 2026 18:52
chore: back-merge master into development
Brings back-merge branch up to date with development so master can be back-merged cleanly (DX-20927).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
DX-20927 | Back-merge master into development
Log exception details with error_log, show a generic message and disable display_errors in examples/index.php.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@reeshika-h
reeshika-h requested a review from a team as a code owner October 26, 2026 10:57
@snyk-io

snyk-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

cs-raj
cs-raj previously approved these changes Oct 30, 2026
@reeshika-h
reeshika-h changed the base branch from development to master November 2, 2026 05:52
@reeshika-h
reeshika-h dismissed cs-raj’s stale review November 2, 2026 05:52

The base branch was changed.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@reeshika-h
reeshika-h merged commit 80813c9 into master Nov 2, 2026
8 checks passed
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.

3 participants