Skip to content

feat(java): detect secret-typed Jenkins jelly fields rendered with f:textbox (CWE-522) - #117

Open
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/jenkins-jelly-secret-textbox
Open

feat(java): detect secret-typed Jenkins jelly fields rendered with f:textbox (CWE-522)#117
ai-anant wants to merge 1 commit into
CodeVigilant:mainfrom
ai-anant:rule/jenkins-jelly-secret-textbox

Conversation

@ai-anant

Copy link
Copy Markdown

Adds an XML rule detecting Jenkins config views (jelly) that render a secret-typed field (field name matching apiKey/secret/token/password/credential) with f:textbox instead of f:password. Secret values rendered in a plain textbox are echoed into the config page HTML, browser history and page source, and replay on save; f:password is required so the value is not displayed and changes require explicit re-entry.

Rule: codevigilant.java.jenkins.views.secret-field-textbox
Validated with semgrep --validate; fires on secret-named textbox entries, silent on f:password and non-secret fields.

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