Commit ff43848
Hide form context menu to prevent field modification exploits
The right-click context menu on form headers provided options that could
be used to modify form fields outside the task scope. This adds a
MutationObserver that removes context menus as soon as they appear,
preventing agents from using this mechanism to bypass field restrictions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 4134527 commit ff43848
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
398 | 422 | | |
399 | 423 | | |
400 | 424 | | |
| |||
0 commit comments