Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
How dangling reference can compromise security?

https://stackoverflow.com/a/69322771/12262729

This post suggests that dangling reference in code run by browser can be entry point to bypass system's security with malicious code - how is it possible?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

The danger is similar to buffer overflows.

The memory that a dangling reference points to could be used in a new allocation. If the program then writes through the dangling pointer, it will write unintended values to that memory.

If that memory happens to be used to hold security-related information (such as a username) and an exploit is able to get information it wants to be written there, it can change the result of the security check.

That's quite a few "if"s, so that kind of exploit is pretty unlikely. More likely is just causing the program to crash. If a hacker can cause an important program to crash, that's considered a security problem.

about 4 years ago · Juan Pablo Isaza Report

0

The post you point to explains why manual memory management is NOT available in JavaScript. IF it was, that would lead to possible dangling references and the consequent security holes. Since this hypothetical scenario is not a reality, JavaScript code cannot suffer from dangling references.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!