SQL Injection vulnerability #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
forgejo/Selfoss-Webfront#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I came across your project on the
selfhostedsubreddit, decided to look at your code. One thing that immediately struck my eye was a SQL injection vunerability inarticle.php, as linked here:github.com/MatthK/Selfoss-Webfront@a66df218b7/website/article.php (L17)I haven't checked the rest of the files, but in my experience if you have one SQL injection vulnerability, then there's probably more.
You can use parameters instead of string concatenation to make it secure.
Kind regards,
Dennis
Yes, I am aware of that. The thing was created with the idea of having it behind a firewall installed for personal use, so the risk there should be limited. I might adjust that and also correct the other 2 potential cases.
I have updated the SQL statements to prepared ones. That should hopefully fix the vulnerability.