Support configurable login form selectors for non-standard label names
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 55/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
从 auth action 入手,其中 getByLabel(/user ?name/i) 和 getByLabel(/password/i) 会定位登录字段,然后检查可选输入是如何定义的。支持可配置的 username_selector 和 password_selector 值以及提议的 input-type 回退方案,并验证能够检测到非标准表单或没有标签的表单,并在已认证状态下对其进行扫描。
由索引模型根据 Issue 内容生成。
描述
Problem
The auth action finds login fields using getByLabel(/user ?name/i) and getByLabel(/password/i). This misses common login forms:
- Email-based login: "Email", "E-Mail" don't match
/user ?name/i - Non-English apps: "Benutzername", "Mot de passe" don't match
- No visible labels: Forms using only
placeholderattributes
When no match is found, the login form is not detected and the scanner proceeds unauthenticated.
Suggested fix
- Fall back to input types when label matching fails:
input[type="password"]for the password field, and the closest precedinginput[type="text"]orinput[type="email"]for the username field. - Make selectors configurable via optional inputs like
username_selectorandpassword_selector, so users can specify their own labels, placeholders, or CSS selectors for non-standard forms.
- 主要语言
- TypeScript
- 星标
- 375
- 派生
- 42
- 平均合并
- 1 天 7 小时
- 30 天内合并 PR
- 6
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/accessibility-scanner 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
github/accessibility-scanner#264 ·
-
难度 3/5 1-2 天 新手友好度 48/100
github/accessibility-scanner#260 ·
-
难度 2/5 1-3 小时 新手友好度 50/100
github/accessibility-scanner#259 ·
-
难度 4/5 3-5 天 新手友好度 58/100
github/accessibility-scanner#245 ·
-
Sitemap Support未关闭
难度 5/5 一周以上 新手友好度 35/100
github/accessibility-scanner#244 ·
查看 github/accessibility-scanner 的全部 Issue
相似的 Issue
-
level/task reporter/qa type/bug
难度 2/5 1-3 小时 新手友好度 85/100
wazuh/wazuh-dashboard-plugins#9310 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
cybersemics/treecrdt#267 ·
-
难度 1/5 1-3 小时 新手友好度 85/100
wiz-sec-public/backstage-plugin-wiz#16 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 72/100
solana-foundation/solana-com#2245 ·
维护者通常 1 天内回复