-
Notifications
You must be signed in to change notification settings - Fork 1
New class vulnerable #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| public class Vulnerable { | ||
| public Connection vulnerable() { | ||
| try { | ||
| return DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarQube
A secure password should be used when connecting to a database
| } | ||
|
|
||
| private static void anotherVulnerableCode() { | ||
| var regex = "/^([a-zA-Z0-9])(([\\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/"; |
Check notice
Code scanning
Inefficient regular expression
| } | ||
|
|
||
| private static void moreVulnerableCode() { | ||
| var regex = "/^([a-zA-Z0-9])(([\\-.]|[_]+)?([a-zA-Z0-9]+))*(@){1}[a-z0-9]+[.]{1}(([a-z]{2,3})|([a-z]{2,3}[.]{1}[a-z]{2,3}))$/"; |
Check notice
Code scanning
Inefficient regular expression
| public class Vulnerable { | ||
| public Connection vulnerable() { | ||
| try { | ||
| return DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check notice
Code scanning
A secure password should be used when connecting to a database
|
|
||
| private static void doVulnerableCode(String output) { | ||
| try { | ||
| DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarQube
A secure password should be used when connecting to a database
|
|
|
||
| private static void doVulnerableCode(String output) { | ||
| try { | ||
| DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarCloud
A secure password should be used when connecting to a database
| public class Vulnerable { | ||
| public Connection vulnerable() { | ||
| try { | ||
| return DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarCloud
A secure password should be used when connecting to a database
|
|
|
||
| private static void doVulnerableCode(String output) { | ||
| try { | ||
| DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarCloudsquad-3
A secure password should be used when connecting to a database
| public class Vulnerable { | ||
| public Connection vulnerable() { | ||
| try { | ||
| return DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarCloudsquad-3
A secure password should be used when connecting to a database
|
|
||
| private static void doVulnerableCode(String output) { | ||
| try { | ||
| DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarCloudDev
A secure password should be used when connecting to a database
| public class Vulnerable { | ||
| public Connection vulnerable() { | ||
| try { | ||
| return DriverManager.getConnection("jdbc:derby:memory:myDB;create=true", "login", ""); |
Check failure
Code scanning / SonarCloudDev
A secure password should be used when connecting to a database
|




No description provided.