Closed Dargon789 closed 2 weeks ago
β Deploy failed!
[!CAUTION] Test run failed
St.:grey_question: |
Category | Percentage | Covered / Total |
---|---|---|---|
π‘ | Statements | 72.98% (-0.51% π») |
13402/18363 |
π΄ | Branches | 50.45% (-0.89% π») |
3227/6397 |
π΄ | Functions | 56.12% (-0.87% π») |
1930/3439 |
π‘ | Lines | 74.68% (-0.5% π») |
12190/16322 |
Report generated by π§ͺjest coverage report action from 5c26db31635c7ce80d4020e1e44a5047170f18fc
Fixes https://github.com/Dargon789/safe-wallet-web/security/code-scanning/1
To fix the problem, we need to ensure that the
appUrl
is validated against a list of authorized URLs before it is used. This can be achieved by maintaining a list of allowed URLs and checking if theappUrl
is in this list before setting it as thesrc
attribute of the iframe.useSafeAppUrl
hook to validate theappUrl
against this list.appUrl
is not in the list, do not set it as thesrc
attribute of the iframe.Suggested fixes powered by Copilot Autofix. Review carefully before merging.