Headline
CVE-2015-10054: Little fix against sql injections · githuis/P2Manage@717380a
A vulnerability, which was classified as critical, was found in githuis P2Manage. This affects the function Execute of the file PTwoManage/Database.cs. The manipulation of the argument sql leads to sql injection. The name of the patch is 717380aba80002414f82d93c770035198b7858cc. It is recommended to apply a patch to fix this issue. The identifier VDB-218397 was assigned to this vulnerability.
Skip to content
Actions
Automate any workflow
Packages
Host and manage packages
Security
Find and fix vulnerabilities
Codespaces
Instant dev environments
Copilot
Write better code with AI
Code review
Manage code changes
Issues
Plan and track work
Discussions
Collaborate outside of code
* Explore
* All features
* Documentation
* GitHub Skills
* Blog
For
Enterprise
Teams
Startups
Education
By Solution
CI/CD & Automation
DevOps
DevSecOps
Case Studies
Customer Stories
Resources
GitHub Sponsors
Fund open source developers
* The ReadME Project
GitHub community articles
* Repositories
* Topics
* Trending
* Collections
Pricing
Notifications
Fork 0
Code
Issues
Pull requests 1
Actions
Projects
Wiki
Security
Insights
Permalink
Browse files
Little fix against sql injections
- Loading branch information
1 parent 0d1b231 commit 717380aba80002414f82d93c770035198b7858cc
Showing 1 changed file with 5 additions and 0 deletions.
@@ -49,6 +49,11 @@ public static Database Instance
public void Execute(string sql)
{
if(sql.Contains(“;”))
{
System.Windows.Forms.MessageBox.Show(“Cannot execute database request, please do not use semicolon ‘;’ anywhere”);
return;
}
SQLiteCommand command = new SQLiteCommand(sql, m_dbConnection);
command.ExecuteNonQuery();
}
0 comments on commit 717380a
Please sign in to comment.