MySQL: unterminated quoted connection values are accepted
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Start in the key/value parsing path inside cwist_mysql_connect(): read how each field's value is scanned and where a quoted value is copied. The fix is to require the matching closing quote and a valid field delimiter before the copy, rejecting the rest. Add regression tests covering an unterminated quote, a quoted delimiter inside the value, and an empty quoted value; done means all three pass and existing connection-string tests still pass.
Written by the indexing model from the issue text.
Description
The key/value parser added to cwist_mysql_connect() accepts a matching field even when its single- or double-quoted value has no closing quote. For example, password="secret is treated as valid instead of rejected. Require the closing quote and a valid field delimiter before copying the value, and add regression tests for unterminated quotes, quoted delimiters, and empty quoted values.
- Dominant language
- C
- Stars
- 16
- Forks
- 7
- Avg merge
- 4h 17m
- Merged PRs (30d)
- 198
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from c4punks/CWIST
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug critical
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
GXF: heap buffer overflow in parse_ad_cdp() — unbounded cc_count in CDP cc data sectionPossibly taken @pranayr710 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CCExtractor/ccextractor#2498 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
area: services kind: bug preview-effort: small priority: low
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Static Analysis failurePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100