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

171
Visualizações
HTML client and own http-server (custom written, Delphi+synapse). Prevent maliciuos injections, fool-proof?

Situation:

LAN with a server PC, where I have my own "HTTP-server" (written in Delphi). The user is a waiter, using a smartphone. The icon on the smartphone simply connects to the IP+Port of the PC. The 'HTTP-server' on the PC on the first connection sends a full HTML page as a response. The page stays for the whole duration of the session. 

The HTML downloaded to the smartphone contains a login DIV, and then various DIV's which will be populated with the response from the 'HTTP-server' on the PC and hidden/shown accordingly.

The request on the HTML page is sent as POST. The server will create an HTML response according to the parameters sent in the POST request and the client will populate the appropriate DIV with it. 

There is only one user input, for a note. Whatever is written there is sent 'as is' to the server which will return that text to be loaded in the appropriate DIV on the client-side.

I tried to see if this lent itself to malicious injections by writing "Alert('HACK')" in it;. What happens is that the server responds by sending the string back and the client loads it literally as a note in the correct DIV. 

From my understanding, this setup should be safe. Am I wrong? Perhaps there is some mysterious way a hacker (sitting where?? how would he be coming into play?) can still crash the app?

about 4 years ago · Juan Pablo Isaza
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