CivicDataLab / CivicDataLab/DataSpaceFrontend

[Security] API key field in 'Add Access Method' has autocomplete="on" — should be off

Open
#414 0 comments 0 reactions 1 assignee View on GitHub

@Abhishekfm is already working on this.

Since Jun 22, 2026.

bug
Dominant language
TypeScript
Stars
1
Forks
0
Avg merge
1d 7h
Merged PRs (30d)
19

Description

Summary

The API key input in the Add New Access Method dialog is a type="password" field with autocomplete="on". Browser password managers may cache the value keyed to the current URL, and the key could autofill on unintended pages or be stored in browser sync.

Impact

  • API keys cached by browser password managers could be exposed if:
    • The browser account is compromised
    • The autofill triggers on a phishing page at a similar URL
    • The browser sync is enabled and sends keys to cloud storage

Fix Recommendation

Set autocomplete="off" (or autocomplete="new-password") on the API key input field in the Add Access Method dialog:

<input
  type="password"
  name="apiKey"
  autoComplete="new-password"
  ...
/>

Environment

  • URL: https://dev.civicdataspace.in/dashboard/organization/civicdatalab/aimodels/edit/{id}/versions (Add Access Method dialog)
  • Discovered: 2026-06-22 via QA audit
  • Report ref: SEC-004

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.