Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Hero-Gamer opened this issue May 5, 2022 · 2 comments
Assignees
Labels
Enhancement 💡 Functionality needed or wanted by users P4 Enhancement 🕯 Non-critical functionality wanted by few users, or there are clear alternatives Security

Comments

@Hero-Gamer
Copy link

Hero-Gamer commented May 5, 2022

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

@314159265359879
Copy link

With all the wide screens, another thing that could help see more code is to widen the "code" box when you click "see more". Wrapping would def be helpful not to hide any code from the viewer.

image

@markmhendrickson markmhendrickson added Enhancement 💡 Functionality needed or wanted by users P4 Enhancement 🕯 Non-critical functionality wanted by few users, or there are clear alternatives Security labels May 6, 2022
@andresgalante andresgalante assigned He1DAr and unassigned landitus Aug 1, 2022
@He1DAr He1DAr closed this as completed Aug 5, 2022
@Hero-Gamer
Copy link
Author

🚀 LFG! Thank yall!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement 💡 Functionality needed or wanted by users P4 Enhancement 🕯 Non-critical functionality wanted by few users, or there are clear alternatives Security
Projects
No open projects
Status: Closed
Development

No branches or pull requests

5 participants