Title: SQL_Injection @ LoginValidator.java · Issue #98 · mridilla/JavaVulnerableLab · GitHub
Open Graph Title: SQL_Injection @ LoginValidator.java · Issue #98 · mridilla/JavaVulnerableLab
X Title: SQL_Injection @ LoginValidator.java · Issue #98 · mridilla/JavaVulnerableLab
Description: SQL_Injection issue exists @ LoginValidator.java in branch master The application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/csrf/changepassword.jsp. The application con...
Open Graph Description: SQL_Injection issue exists @ LoginValidator.java in branch master The application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/csrf...
X Description: SQL_Injection issue exists @ LoginValidator.java in branch master The application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/...
Opengraph URL: https://github.com/mridilla/JavaVulnerableLab/issues/98
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SQL_Injection @ LoginValidator.java","articleBody":"**SQL\\_Injection** issue exists @ **LoginValidator\\.java** in branch **master**\r\n\r\nThe application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/csrf/changepassword.jsp. 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 \"\"password\"\"; this input is then read by the processRequest method at line 44 of /src/main/java/org/cysecurity/cspf/jvl/controller/LoginValidator.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/LoginValidator.java#L43) [44](https://github.com/mridilla/JavaVulnerableLab/blob/master/src/main/java/org/cysecurity/cspf/jvl/controller/LoginValidator.java#L44) \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:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/98/JavaVulnerableLab/issues/98"}
| 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:dff783b2-ccba-ba2b-d820-a6fa8f5621cd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9732:14E788:49BF2E:609995:6A5B2A0E |
| html-safe-nonce | 1429426ff431944851e5beae372bdcdcc912776fadf8332bb7ee15f0b5968376 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMyOjE0RTc4ODo0OUJGMkU6NjA5OTk1OjZBNUIyQTBFIiwidmlzaXRvcl9pZCI6IjQ2NTM3NTg4NjI3MTMzNjcwNTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c93d3d758e360906b921157c7c54711ffd73daef170241d67436fff5ef6d07d |
| hovercard-subject-tag | issue:1291481869 |
| 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/98/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a44e9409433cedccd86a9ab98ff4995cd538c9fe5a81044ec4558d9b1feadc9/mridilla/JavaVulnerableLab/issues/98 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a44e9409433cedccd86a9ab98ff4995cd538c9fe5a81044ec4558d9b1feadc9/mridilla/JavaVulnerableLab/issues/98 |
| og:image:alt | SQL_Injection issue exists @ LoginValidator.java in branch master The application's changepassword method executes an SQL query with executeUpdate, at line 40 of /src/main/webapp/vulnerability/csrf... |
| 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