Skip to content

test(jira): add security regression tests for path traversal and JQL sanitization#983

Merged
sooperset merged 1 commit into
mainfrom
test/followup-pr949-security-tests
Feb 24, 2026
Merged

test(jira): add security regression tests for path traversal and JQL sanitization#983
sooperset merged 1 commit into
mainfrom
test/followup-pr949-security-tests

Conversation

@sooperset
Copy link
Copy Markdown
Owner

Summary

  • Add regression tests for security hardening introduced in PR fix: remove credential/token logging and harden security #949
  • Path traversal rejection tests for download_attachment (absolute and relative paths) and download_issue_attachments (ValueError propagation)
  • JQL value escaping unit tests verifying the inline replace("\\", "\\\\").replace('"', '\\"') logic, including the critical backslash-then-quote ordering
  • Integration tests confirming search_issues handles malicious projects_filter values without errors (both Cloud and Server/DC)
  • New backslash-and-quote combined test case for quote_jql_identifier_if_needed

Test plan

Follow-up to #949.

…sanitization

Add tests for security hardening from PR #949:
- Path traversal rejection in attachment downloads (absolute and relative paths)
- Path traversal rejection in issue attachment downloads (ValueError propagation)
- JQL value escaping for backslash and double-quote characters (inline logic)
- Integration tests for projects filter with malicious special characters
- Combined backslash+quote escaping case for quote_jql_identifier_if_needed

Follow-up to PR #949.

Github-Issue: #949
@sooperset sooperset merged commit ab36f81 into main Feb 24, 2026
6 checks passed
@sooperset sooperset deleted the test/followup-pr949-security-tests branch February 24, 2026 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant