Commit fca6b87
authored
URL redirect and ValidateIssuer CodeQL bugs (#9398)
* added Url redirect codeql suppressions
* codeQL bug = suppression :)
* moved suppression comment closer to the relevant line of code
* We are restricting the reCAPTCHA request to a specific host. Changed the suppression comment to reflect this as the mitigation for the vulnerability.
* Only allow relative Urls as a return Url. Add/adapt tests.
* removed unnecessary usings
* modified suppression comment for recaptcha redirection1 parent ebd782b commit fca6b87
4 files changed
Lines changed: 57 additions & 12 deletions
File tree
- src
- NuGetGallery.Services/Authentication/Providers/AzureActiveDirectoryV2
- NuGetGallery
- Controllers
- Filters
- tests/NuGetGallery.Facts/Controllers
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
448 | 454 | | |
449 | 455 | | |
450 | 456 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
Lines changed: 49 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1576 | 1576 | | |
1577 | 1577 | | |
1578 | 1578 | | |
1579 | | - | |
1580 | | - | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
1581 | 1583 | | |
1582 | 1584 | | |
1583 | 1585 | | |
1584 | 1586 | | |
1585 | 1587 | | |
1586 | 1588 | | |
1587 | | - | |
| 1589 | + | |
1588 | 1590 | | |
1589 | 1591 | | |
1590 | | - | |
| 1592 | + | |
1591 | 1593 | | |
1592 | 1594 | | |
1593 | 1595 | | |
1594 | | - | |
1595 | | - | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
1596 | 1600 | | |
1597 | 1601 | | |
1598 | 1602 | | |
| |||
1612 | 1616 | | |
1613 | 1617 | | |
1614 | 1618 | | |
1615 | | - | |
| 1619 | + | |
1616 | 1620 | | |
1617 | 1621 | | |
1618 | | - | |
| 1622 | + | |
1619 | 1623 | | |
1620 | 1624 | | |
1621 | 1625 | | |
1622 | | - | |
1623 | | - | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
1624 | 1630 | | |
1625 | 1631 | | |
1626 | 1632 | | |
| |||
1640 | 1646 | | |
1641 | 1647 | | |
1642 | 1648 | | |
1643 | | - | |
| 1649 | + | |
1644 | 1650 | | |
1645 | 1651 | | |
1646 | 1652 | | |
1647 | | - | |
| 1653 | + | |
1648 | 1654 | | |
1649 | 1655 | | |
1650 | 1656 | | |
| |||
1685 | 1691 | | |
1686 | 1692 | | |
1687 | 1693 | | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
1688 | 1725 | | |
1689 | 1726 | | |
1690 | 1727 | | |
| |||
0 commit comments