Title: SQL_Injection @ changeCardDetails.jsp · Issue #95 · mridilla/JavaVulnerableLab · GitHub
Open Graph Title: SQL_Injection @ changeCardDetails.jsp · Issue #95 · mridilla/JavaVulnerableLab
X Title: SQL_Injection @ changeCardDetails.jsp · Issue #95 · mridilla/JavaVulnerableLab
Description: SQL_Injection issue exists @ changeCardDetails.jsp in branch master The application's changeCardDetails method executes an SQL query with executeUpdate, at line 43 of /src/main/webapp/changeCardDetails.jsp. The application constructs thi...
Open Graph Description: SQL_Injection issue exists @ changeCardDetails.jsp in branch master The application's changeCardDetails method executes an SQL query with executeUpdate, at line 43 of /src/main/webapp/changeCardDet...
X Description: SQL_Injection issue exists @ changeCardDetails.jsp in branch master The application's changeCardDetails method executes an SQL query with executeUpdate, at line 43 of /src/main/webapp/changeCar...
Opengraph URL: https://github.com/mridilla/JavaVulnerableLab/issues/95
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SQL_Injection @ changeCardDetails.jsp","articleBody":"**SQL\\_Injection** issue exists @ **changeCardDetails\\.jsp** in branch **master**\r\n\r\nThe application's changeCardDetails method executes an SQL query with executeUpdate, at line 43 of /src/main/webapp/changeCardDetails.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 \"\"expirydate\"\"; this input is then read by the changeCardDetails method at line 39 of /src/main/webapp/changeCardDetails.jsp. 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:** [37](https://github.com/mridilla/JavaVulnerableLab/blob/master/src/main/webapp/changeCardDetails.jsp#L37) [38](https://github.com/mridilla/JavaVulnerableLab/blob/master/src/main/webapp/changeCardDetails.jsp#L38) [39](https://github.com/mridilla/JavaVulnerableLab/blob/master/src/main/webapp/changeCardDetails.jsp#L39) \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:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/95/JavaVulnerableLab/issues/95"}
| 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:424d2d9a-dec9-ae89-edb2-b666b47e9988 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECFA:28FCA6:4EE227:67554F:6A5B2937 |
| html-safe-nonce | 2f2abed23fb3e82b45d353bd25f4acb247499ec5a46b0f9c18e90c701b46bc63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0ZBOjI4RkNBNjo0RUUyMjc6Njc1NTRGOjZBNUIyOTM3IiwidmlzaXRvcl9pZCI6IjU3MTExOTc3NTk2NTY4OTY4MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3441b011138dc3a5c6d5348c869a1c73cb8d7f932e41cdd703e3afe00ba5e60c |
| hovercard-subject-tag | issue:1291481847 |
| 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/95/issue_layout |
| twitter:image | https://opengraph.githubassets.com/86c5ec104468245b3727a19214204f6699f61768a5144086c8dfb56116cbefc5/mridilla/JavaVulnerableLab/issues/95 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/86c5ec104468245b3727a19214204f6699f61768a5144086c8dfb56116cbefc5/mridilla/JavaVulnerableLab/issues/95 |
| og:image:alt | SQL_Injection issue exists @ changeCardDetails.jsp in branch master The application's changeCardDetails method executes an SQL query with executeUpdate, at line 43 of /src/main/webapp/changeCardDet... |
| 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