File size: 23,683 Bytes
157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 aaa090a 157d7a8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 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 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 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 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 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 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 | {
"schema_version": 1,
"source": "lakeday-org/perch/scan.yaml",
"source_sha256": "f881306f892af4c36b306480cc059ad86affdd196ca99f7b1a755906f4513cee",
"domains": {
"bug": [
{
"name": "has_bug",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "defect",
"label": "kind",
"pick": "strongest"
},
"min": 50,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` contain a concrete behavioral defect that a caller can reach?",
"criteria": {
"true": "For some input a caller can pass, the method returns a wrong result, leaves wrong state, throws when it should not, or fails to throw when it should\n",
"false": "The method behaves correctly for every input its callers can pass; style, performance, and hypothetical misuse do not count\n"
}
}
},
{
"name": "bug_edge_case",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "defect",
"label": "kind",
"pick": "strongest"
},
"min": 50,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` produce a wrong result for a valid empty, zero, first, last, or missing input?",
"criteria": {
"true": "One of these valid inputs produces an incorrect result or failure.",
"false": "These valid inputs produce the intended results and errors."
}
}
}
],
"security": [
{
"name": "severity",
"type": "score",
"language": null,
"where": "**/*",
"issue": null,
"min": null,
"when": null,
"question": {
"type": "score",
"instructions": "If something is wrong with `method`, how much would a caller feel it?",
"criteria": [
"No caller would notice",
"A wrong result in a rare case, or one the caller can see and recover from",
"A wrong result or wrong state in ordinary use",
"Data lost, corrupted, or exposed, or a check that should stop someone bypassed"
]
}
},
{
"name": "cwe_79",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "xss",
"pick": "strongest"
},
"min": 60,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to cross-site scripting?",
"criteria": {
"true": "Outside text reaches HTML or script output without escaping. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its output is escaped, or no attacker-controlled text reaches it."
}
}
},
{
"name": "cwe_89",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "sql_injection",
"pick": "strongest"
},
"min": 60,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to SQL injection?",
"criteria": {
"true": "Outside text becomes part of the SQL it runs. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its SQL is fixed, or outside values are bound as parameters."
}
}
},
{
"name": "cwe_352",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "csrf",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to cross-site request forgery?",
"criteria": {
"true": "A browser request that changes state is accepted without a CSRF token or origin check.",
"false": "It checks for forgery, or changes nothing a browser request can trigger."
}
}
},
{
"name": "cwe_862",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "missing_authorization",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` skip an authorization check it needs?",
"criteria": {
"true": "Its name, documentation or callers show its action must be limited to certain users, and it performs it without checking who is calling.",
"false": "It checks permission, or its action needs none."
}
}
},
{
"name": "cwe_787",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "out_of_bounds_write",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` write past the end of a buffer?",
"criteria": {
"true": "An index, pointer or length lets it write outside the memory it owns.",
"false": "Every write stays inside its buffer."
}
}
},
{
"name": "cwe_22",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "path_traversal",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to path traversal?",
"criteria": {
"true": "A path built from outside input can reach files beyond the directory it should be limited to. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its paths are fixed or confined to their directory."
}
}
},
{
"name": "cwe_416",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "use_after_free",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` use memory after it is freed?",
"criteria": {
"true": "It reads or writes through a pointer or reference after the memory is released.",
"false": "It never uses memory after release."
}
}
},
{
"name": "cwe_125",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "out_of_bounds_read",
"pick": "strongest"
},
"min": 60,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` read past the end of a buffer?",
"criteria": {
"true": "An index, pointer or length lets it read outside the memory it owns.",
"false": "Every read stays inside its buffer."
}
}
},
{
"name": "cwe_78",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "os_command_injection",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to OS command injection?",
"criteria": {
"true": "Outside text becomes part of a shell command. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its commands are fixed, or pass arguments without a shell."
}
}
},
{
"name": "cwe_94",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "code_injection",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to code injection?",
"criteria": {
"true": "Outside text is evaluated or compiled as code. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "It never runs outside input as code."
}
}
},
{
"name": "cwe_120",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "buffer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` copy more into a buffer than it holds?",
"criteria": {
"true": "A copy's length is not checked against the size of its destination.",
"false": "Every copy is bounded by its destination."
}
}
},
{
"name": "cwe_434",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "unsafe_file_upload",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` accept a dangerous file upload?",
"criteria": {
"true": "An uploaded file of any type can be stored where it can be run or served. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Uploads are checked, or stored where they cannot do harm."
}
}
},
{
"name": "cwe_476",
"type": "noul",
"language": [
"c",
"cpp",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "null_dereference",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` dereference a null pointer?",
"criteria": {
"true": "A null pointer or reference is used on some path.",
"false": "Nulls are checked before use."
}
}
},
{
"name": "cwe_121",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "stack_buffer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` overflow a buffer on the stack?",
"criteria": {
"true": "A write can go past the end of a stack buffer.",
"false": "Its stack buffers are never overrun."
}
}
},
{
"name": "cwe_502",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "unsafe_deserialization",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` deserialize untrusted data unsafely?",
"criteria": {
"true": "Outside data is deserialized in a way that can create arbitrary objects or run code. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "It deserializes only trusted data, or only plain values."
}
}
},
{
"name": "cwe_122",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "heap_buffer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` overflow a buffer on the heap?",
"criteria": {
"true": "A write can go past the end of a heap buffer.",
"false": "Its heap buffers are never overrun."
}
}
},
{
"name": "cwe_863",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "incorrect_authorization",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` check authorization wrongly?",
"criteria": {
"true": "Its name, documentation or callers show who may perform its action, and its check lets through someone who should be refused.",
"false": "Its permission check is right."
}
}
},
{
"name": "cwe_284",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "broken_access_control",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` let someone use something they should not have access to?",
"criteria": {
"true": "Its name, documentation or callers show a resource or action is protected, and it lets the wrong actor use it.",
"false": "Its access control is right."
}
}
},
{
"name": "cwe_200",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "information_exposure",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` expose sensitive information?",
"criteria": {
"true": "It returns, logs or sends secrets, tokens or personal data to someone who should not see them.",
"false": "It exposes nothing sensitive."
}
}
},
{
"name": "cwe_306",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "missing_authentication",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` skip authentication it needs?",
"criteria": {
"true": "Its name, documentation or callers show a sensitive action that needs a known caller, and it runs without authenticating one.",
"false": "It authenticates the caller, or needs no authentication."
}
}
},
{
"name": "cwe_918",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "ssrf",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to server-side request forgery?",
"criteria": {
"true": "A destination taken from outside input decides where the server sends a request. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its destinations are fixed or checked against an allow list."
}
}
},
{
"name": "cwe_77",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "command_injection",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to command injection?",
"criteria": {
"true": "Outside text changes a command passed to an interpreter. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its commands are fixed, or outside input is passed as data."
}
}
},
{
"name": "cwe_639",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "idor",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can a user reach someone else's data by changing an ID that `method` receives?",
"criteria": {
"true": "It looks up a record by an ID taken from outside input without checking the record belongs to the caller. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "It checks ownership, or its records are not per user."
}
}
},
{
"name": "cwe_770",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "resource_exhaustion",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can a request or other untrusted input make `method` use unbounded memory or work?",
"criteria": {
"true": "A size, count or depth taken from outside input sets how much it allocates or loops, with no limit. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its work is fixed, limited, or set only by the program's own data."
}
}
},
{
"name": "cwe_327",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "weak_crypto",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` use weak cryptography?",
"criteria": {
"true": "It protects a password, token or secret with a broken algorithm such as MD5 or SHA-1, or uses predictable randomness where a value must be unguessable.",
"false": "Its cryptography is sound, or it uses none."
}
}
},
{
"name": "cwe_295",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "disabled_certificate_check",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` turn off certificate checking?",
"criteria": {
"true": "TLS certificate or hostname verification is disabled or bypassed.",
"false": "It keeps certificate checking on, or makes no TLS connection."
}
}
},
{
"name": "cwe_798",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "hardcoded_secret",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` contain a hard-coded credential?",
"criteria": {
"true": "A password, API key or private key is written in the source.",
"false": "It contains no credential."
}
}
},
{
"name": "cwe_190",
"type": "noul",
"language": [
"c",
"cpp",
"zig",
"rust",
"go",
"java",
"kotlin",
"c_sharp",
"swift",
"solidity"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "integer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can arithmetic in `method` overflow in a way that matters?",
"criteria": {
"true": "A calculation wraps or overflows and the result is used as a size, index, amount or security check.",
"false": "Its arithmetic cannot overflow, or an overflow does no harm."
}
}
},
{
"name": "cwe_908",
"type": "noul",
"language": [
"c",
"cpp",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "uninitialized_use",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` read memory before it is written?",
"criteria": {
"true": "A variable, field or buffer is read before it is set on some path.",
"false": "Everything it reads is set first."
}
}
},
{
"name": "cwe_601",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "open_redirect",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to an open redirect?",
"criteria": {
"true": "A redirect target taken from outside input can send users to any site. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its redirect targets are fixed or checked."
}
}
}
]
},
"pack_sha256": "afe116cc8461552aaca996f8f0b639cdf5e42e9d8291c59995482309b5c330dc",
"protocol_id": "perch-scan-afe116cc8461",
"binary_protocol_id": "perch-scan-binary-afe116cc8461"
}
|