Repository navigation
Commit 6e69f37
committed
powerplatform-check: read Power Pages, canvas app and flow exports
Semgrep reads Power Platform exports as plain YAML and JSON and finds
nothing, and the reasoning pass only reads Python, PHP and JavaScript
handlers, so a repository holding a Power Pages site, canvas apps and
flows came back with no code findings at all.
New engine lib/powerplatform_check.py, run like the Mule check when the
tree holds a table-permissions folder, a .pa.yaml or .fx.yaml file, or a
flow definition. Every rule keys on the export format, never on a
repository's own names:
- Global table permissions held by the Anonymous Users role (read, write
or delete is high with the Web API on; create is medium), and Global
write for the Authenticated Users role. Web roles, permissions and
Webapi site settings are joined, and a FetchXML filter lowers a grade.
- HTTP triggered flows anybody can call that write or send mail and never
read the request headers.
- HTML email bodies built from record or caller values, recipients taken
from a caller, and CSV tables with no formula neutralizing.
- Canvas HtmlText formulas that join data into markup without EncodeHTML.
Date named columns and Text(value, format) are not counted.
Checked against a real export (every outside finding reproduced, plus 11
it missed) and against six unrelated repositories on 13 branches, with
no false alarms.1 parent 29304c7 commit 6e69f37
4 files changed
Lines changed: 671 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
448 | 459 | | |
449 | 460 | | |
450 | 461 | | |
| |||
468 | 479 | | |
469 | 480 | | |
470 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
471 | 503 | | |
472 | 504 | | |
473 | 505 | | |
| |||
0 commit comments