Repository navigation
Commit 520d11a
committed
fix: tighten imessage reply authorization trust
Keep inferred iMessage reply targets sender-authorized only when the target actually used for delivery matches the current channel, and ignore gateway-supplied requester identities for sender-based group allowlist checks.
Preserve sender authorization for internally consumed implicit reply chunks while still rejecting malformed reply ids that sanitize away.
Validation:
- node scripts/run-vitest.mjs extensions/imessage/src/actions.test.ts extensions/imessage/src/send.test.ts
- node scripts/run-vitest.mjs extensions/imessage/src/send.test.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/channel.runtime.test.ts extensions/imessage/src/monitor/deliver.test.ts extensions/imessage/src/test-plugin.test.ts extensions/imessage/src/monitor.gating.test.ts src/infra/outbound/deliver.test.ts src/infra/outbound/message.channels.test.ts extensions/imessage/src/targets.test.ts src/infra/outbound/message-action-normalization.test.ts
- pnpm exec oxlint extensions/imessage/src/actions.ts extensions/imessage/src/actions.test.ts extensions/imessage/src/send.ts extensions/imessage/src/send.test.ts
- git diff --check1 parent 8b12830 commit 520d11a
4 files changed
Lines changed: 105 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
693 | 741 | | |
694 | 742 | | |
695 | 743 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
260 | 279 | | |
261 | 280 | | |
262 | 281 | | |
| |||
267 | 286 | | |
268 | 287 | | |
269 | 288 | | |
270 | | - | |
| 289 | + | |
271 | 290 | | |
272 | 291 | | |
273 | 292 | | |
| |||
447 | 466 | | |
448 | 467 | | |
449 | 468 | | |
450 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
451 | 478 | | |
452 | 479 | | |
453 | 480 | | |
| |||
524 | 551 | | |
525 | 552 | | |
526 | 553 | | |
527 | | - | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
528 | 557 | | |
529 | 558 | | |
530 | 559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
464 | 488 | | |
465 | 489 | | |
466 | 490 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
| 861 | + | |
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| |||
0 commit comments