Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

333
Visualizações
Can a local JS file be harmful in any way?

Are there any ways in which a local html + js file (without local server) can be harmful?

TL;DR

I am maintaining a scientific visualisation tool for a number of corporations.

Currently, it is basically an Excel sheet without macro. So the possiblities to do cool stuff is somewhat limited. So I am looking at how we could get into some more real programming.

Problem is, these corporations are all super tight on security. So macros in excel are banned for most of them for security reasons.

I was thinking about rewriting it into a local html file instead and do the necessary calculations in js, without opening a local server. Then I should be able to develop all functionality needed, while keeping the application very safe.



Or at least so I think?

This app wouldn't be able to access file system, or send info to 3rd party right?

Is there some other security concern I might be missing?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The short answer is "yes", the long answer is "you are probably fine".

Theoretically a browsers JavaScript Engine should heavily restrict the access of any executed script. With default configurations there should be no way for a script to harm the computer it is executed on.

If you think about it, it is very easy to get somebody to load your website. If that would be enough to harm the machine, we would be in big trouble.

Now in practice there have been vulnerabilities in JavaScript Engines and they have been abused. However this is not something you should need to worry about, nor is it something a corporations will consider.

Edit: A JavaScript can send information to third parties. It just can't read the local filesystem or get more information than any other website can. If you are loading some data, you would theoretically be able to send that data elsewhere.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda