Title: SQL_Injection @ UsernameCheck.java · Issue #100 · mridilla/JavaVulnerableLab · GitHub
Open Graph Title: SQL_Injection @ UsernameCheck.java · Issue #100 · mridilla/JavaVulnerableLab
X Title: SQL_Injection @ UsernameCheck.java · Issue #100 · mridilla/JavaVulnerableLab
Description: SQL_Injection issue exists @ UsernameCheck.java in branch master The application's processRequest method executes an SQL query with executeQuery, at line 52 of /src/main/java/org/cysecurity/cspf/jvl/controller/UsernameCheck.java. The app...
Open Graph Description: SQL_Injection issue exists @ UsernameCheck.java in branch master The application's processRequest method executes an SQL query with executeQuery, at line 52 of /src/main/java/org/cysecurity/cspf/jv...
X Description: SQL_Injection issue exists @ UsernameCheck.java in branch master The application's processRequest method executes an SQL query with executeQuery, at line 52 of /src/main/java/org/cysecurity/csp...
Opengraph URL: https://github.com/mridilla/JavaVulnerableLab/issues/100
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SQL_Injection @ UsernameCheck.java","articleBody":"**SQL\\_Injection** issue exists @ **UsernameCheck\\.java** in branch **master**\r\n\r\nThe application's processRequest method executes an SQL query with executeQuery, at line 52 of /src/main/java/org/cysecurity/cspf/jvl/controller/UsernameCheck.java. The application constructs this SQL query by embedding an untrusted string into the query without proper sanitization. The concatenated string is submitted to the database, where it is parsed and executed accordingly.\n\nAn attacker would be able to inject arbitrary syntax and data into the SQL query, by crafting a malicious payload and providing it via the input \"\"username\"\"; this input is then read by the processRequest method at line 43 of /src/main/java/org/cysecurity/cspf/jvl/controller/UsernameCheck.java. This input then flows through the code, into a query and to the database server - without sanitization.\r\n\r\nThis may enable an SQL Injection attack.\r\n\r\n**Namespace:** mridilla\r\n**Repository:** JavaVulnerableLab\r\n**Repository Url:** https://github.com/mridilla/JavaVulnerableLab\r\n**CxAST\\-Project:** mridilla/JavaVulnerableLab\r\n**CxAST platform scan:** [e1fc43b6\\-0e4d\\-4a93\\-8009\\-8fe24d4a9091](https://ast.checkmarx.net/projects/188bd83b-3bc2-4f79-9ccc-90f764c20505/scans?id=e1fc43b6-0e4d-4a93-8009-8fe24d4a9091\u0026branch=master)\r\n**Branch:** master\r\n**Application:** JavaVulnerableLab\r\n**Severity:** HIGH\r\n**State:** TO_VERIFY\r\n**Status:** RECURRENT\r\n**CWE:** 89\r\n**Lines:** [43](https://github.com/mridilla/JavaVulnerableLab/blob/master/src/main/java/org/cysecurity/cspf/jvl/controller/UsernameCheck.java#L43) \r\n\r\n----\r\n**References**\r\n[Read more](https://ast.checkmarx.net/results/e1fc43b6-0e4d-4a93-8009-8fe24d4a9091/188bd83b-3bc2-4f79-9ccc-90f764c20505/sast/description/89/14517067005933136034)\r\n","author":{"url":"https://github.com/mridilla","@type":"Person","name":"mridilla"},"datePublished":"2022-07-01T14:26:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/100/JavaVulnerableLab/issues/100"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8b0a3d9d-54a6-d206-4d6e-505035acdb57 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E88:13C9B5:1DF64C2:27D0BED:6A5BCC1B |
| html-safe-nonce | 5be98126a3b572f8b41327f657b73853d71cc6c8bc1df0abffc81dcd90a416d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTg4OjEzQzlCNToxREY2NEMyOjI3RDBCRUQ6NkE1QkNDMUIiLCJ2aXNpdG9yX2lkIjoiNTQyMTMwODY0OTk1NTY0MjM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0091582bd82909aa64416ffa62f312ca1dcefb7aeac26ab9d8efbfeb56a656c5 |
| hovercard-subject-tag | issue:1291481892 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/mridilla/JavaVulnerableLab/100/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5eeccc15f403179e4372782e5df6bcc0d76b98b9b5cfc2ee0eca4c900c85911f/mridilla/JavaVulnerableLab/issues/100 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5eeccc15f403179e4372782e5df6bcc0d76b98b9b5cfc2ee0eca4c900c85911f/mridilla/JavaVulnerableLab/issues/100 |
| og:image:alt | SQL_Injection issue exists @ UsernameCheck.java in branch master The application's processRequest method executes an SQL query with executeQuery, at line 52 of /src/main/java/org/cysecurity/cspf/jv... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mridilla |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/mridilla/JavaVulnerableLab git https://github.com/mridilla/JavaVulnerableLab.git |
| octolytics-dimension-user_id | 106341105 |
| octolytics-dimension-user_login | mridilla |
| octolytics-dimension-repository_id | 500864610 |
| octolytics-dimension-repository_nwo | mridilla/JavaVulnerableLab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 301707927 |
| octolytics-dimension-repository_parent_nwo | cx-maty-siman/JavaVulnerableLab |
| octolytics-dimension-repository_network_root_id | 301707927 |
| octolytics-dimension-repository_network_root_nwo | cx-maty-siman/JavaVulnerableLab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width