Skip to content

Word wrap for code lines (to increase visibility of hidden codes of any malicious exploit) #699

@Hero-Gamer

Description

@Hero-Gamer

Is your feature request related to a problem? Please describe.
Time taken to search for hidden codes & exploits, e.g. during Arkadiko hack the exploit codes were hidden outside of the immediate visible view, even if you scroll down vertically, hidden exploit code could not be found. Eventually the hidden exploit was found by scrolling horizontally to the far far right hand side.

Exploit contract: https://explorer.stacks.co/txid/0x4d78fe328be831db1b68e50c4eab7fc57c328af5f441d40238436893d1b8ee28?chain=mainnet

Describe the solution you'd like

  • Word wrap (such as on the Windows Notepad) the lines that out of the immediate screen real estate, so ALL codes are visible immediate as you look at any page loaded.

e.g. like below example solution. In the Arkadiko exploit the codes were hidden far right side out of the screen, you had to scroll horizontally a lot to find the hidden exploit codes

Describe alternatives you've considered

  • A scroll bar at the top (Tho there is a scroll bar, but can be easily be missed as it's at the very bottom of the page.)
  • A scroll bar appear when you hover the code lines.

Benefits

  • No codes can escape the view of the current window. Can identify the exploits or bugs much quicker, in order to deploy a counter-exploit much quicker, potentially save a lot of money from the hack.

cc: @wileyj @philipdesmedt

Metadata

Metadata

Assignees

Labels

Enhancement 💡Functionality needed or wanted by usersP4 Enhancement 🕯Non-critical functionality wanted by few users, or there are clear alternativesSecurity

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions