Validate the URLs before opening them, prompt user confirmation when opening untrusted domains #2056
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
topic: security
Related to the protection of user data
type: enhancement
Proposed improvement
Describe the request
This feature request is based on #2027 (review).
External library contributors can specify any meaningful content for a library, including URLs. IDE2 renders these links on the UI, and the URL links are clickable, but IDE2 cannot guarantee anything regarding the links. For example, VS Code asks the user before opening a link not among the trusted domains. It's still possible to open untrusted URLs from Code without user confirmation, though, so it could be better. IDE2 opens every link without asking.
Acceptance criteria:
Describe the current behavior
IDE2 opens any links in the default browser without prompting the user.
Arduino IDE version
2.1.0
Operating system
macOS
Operating system version
12.6.3
Additional context
Related links and best practices:
The Arduino security team has suggested not to render a link on the UI clickable if the URL scheme is not
http
,https
, ormailto
.Suggested pseudo code:
Issue checklist
The text was updated successfully, but these errors were encountered: