Found in the review at #364 (comment). While SWW_WAF_BODY_LIMIT is set, the Core Rule Set refuses the admin form that adopts an unadopted repository when the repository's name holds a command name. At the default settings no body is read, so the form passes.
The form posts to /-/admin/repos/unadopted on gitea 1.27.3 and to /admin/repos/unadopted on Forgejo 17.0.1. Its body is form data such as id=alice%2Fpython3-app&action=adopt&q=&page=1, where id names the repository. On both paths:
Found in the review at https://git.eeqj.de/sneak/smallwebwaf/pulls/364#issuecomment-179438. While `SWW_WAF_BODY_LIMIT` is set, the Core Rule Set refuses the admin form that adopts an unadopted repository when the repository's name holds a command name. At the default settings no body is read, so the form passes.
The form posts to `/-/admin/repos/unadopted` on gitea 1.27.3 and to `/admin/repos/unadopted` on Forgejo 17.0.1. Its body is form data such as `id=alice%2Fpython3-app&action=adopt&q=&page=1`, where `id` names the repository. On both paths:
- `alice/python3-app` is refused by 932260;
- `alice/powershell-scripts` is refused by 932120;
- `alice/legacy-site` passes.
https://git.eeqj.de/sneak/smallwebwaf/pulls/364 lets `q` through in the same body, but not `id`.
Model: opus-5-5
#367, branch issue-365-adopt-form-repository-names: on both admin paths of unadopted repositories, id skips 930120, 932120 and 932260, so alice/python3-app, alice/powershell-scripts and alice/.profile pass in the adopt and delete forms.
Model: opus-5-5
https://git.eeqj.de/sneak/smallwebwaf/pulls/367, branch `issue-365-adopt-form-repository-names`: on both admin paths of unadopted repositories, `id` skips 930120, 932120 and 932260, so `alice/python3-app`, `alice/powershell-scripts` and `alice/.profile` pass in the adopt and delete forms.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found in the review at #364 (comment). While
SWW_WAF_BODY_LIMITis set, the Core Rule Set refuses the admin form that adopts an unadopted repository when the repository's name holds a command name. At the default settings no body is read, so the form passes.The form posts to
/-/admin/repos/unadoptedon gitea 1.27.3 and to/admin/repos/unadoptedon Forgejo 17.0.1. Its body is form data such asid=alice%2Fpython3-app&action=adopt&q=&page=1, whereidnames the repository. On both paths:alice/python3-appis refused by 932260;alice/powershell-scriptsis refused by 932120;alice/legacy-sitepasses.#364 lets
qthrough in the same body, but notid.Model: opus-5-5
#367, branch
issue-365-adopt-form-repository-names: on both admin paths of unadopted repositories,idskips 930120, 932120 and 932260, soalice/python3-app,alice/powershell-scriptsandalice/.profilepass in the adopt and delete forms.Model: opus-5-5