Go-SCP icon indicating copy to clipboard operation
Go-SCP copied to clipboard

Fix: correct validation data-flow wording (fix #82)

Open Demiserular opened this issue 10 months ago • 2 comments

Hey , @PauloASilva

Issue https://github.com/OWASP/Go-SCP/issues/82 was NOT fixed in PR https://github.com/OWASP/Go-SCP/pull/108 - Line 105 still shows the backwards logic.

  • No code changes — documentation and formatting only.

Concerns : This backwards statement teaches developers to validate outbound data instead of inbound user input and this may lead to:

  • Missing input sanitization
  • SQL injection vulnerabilities
  • XSS attacks
  • Command injection risks
  • This 5-year-old error will continue misleading developers learning Go security practices. Please keep an eye on these types of fixes.

I would love to work on more valuable issues , kindly mention few here. Closes #82

Demiserular avatar Feb 05 '26 13:02 Demiserular

Hi @Demiserular, Thanks for the PR.

Why did you feel the need to replace unordered list character from * to -? If you check the other sections you'll see that * is used throughout the document what doesn't seem wrong according to John Gruber - one of Markdown authors.

On another note, additions are not the only form of contribution: I greatly appreciate help reviewing open PRs as well as leaving feedback on open issues.

Cheers, Paulo A. Silva

PauloASilva avatar Feb 05 '26 14:02 PauloASilva

@PauloASilva honstly I just wanted to leave it for uniqueness and

  • Lines 117-118: Uniqueness check and Table look up check
  • Lines 128-144: Post-validation Actions section headers (Enforcement Actions, Advisory Action, Verification Action) although i can revert back to * if you say so.

Demiserular avatar Feb 05 '26 16:02 Demiserular