pitr / gemini-ios

Elaho - iOS browser for Gemini protocol
Mozilla Public License 2.0
116 stars 6 forks source link

Security issue: Gemtext link with a 'javascript:' URI execute JS when clicked #42

Open acidus99 opened 2 years ago

acidus99 commented 2 years ago

Elaho will execute Javascript if when a user clicks a standard Gemtext link (=> javascript:alert(555) hello!)

This is similar to issue #41

Expected behavior: Elaho should not execute JavaScript found in javascript: URIs. URL schemes should probably follow an allow-list, where only specific, known schemes are allowed and operated on (e.g. http,https, gemini,mailto, etc)

image