Skip to main content

Questions tagged [javascript]

The common name for the language used primarily for scripting in web browsers. It is not related to the Java language. Standardized as ECMAScript, its dialects/implementations include JavaScript and JScript.

Filter by
Sorted by
Tagged with
5 votes
1 answer
1k views

I've heard the discussion many times of whether storing credentials or other sensitive info in localStorage or document.cookie is more secure. But I'm currently building a platform and I was wondering,...
Parking Master's user avatar
1 vote
1 answer
183 views

I’d like to ask for some advice regarding controlling a newly opened browser tab using JavaScript. Here’s the situation: I have my own website hosted at my.site.com, which includes a link to a ...
Marcopolo's user avatar
0 votes
1 answer
367 views

Before I start, I have found a few related references to this question, but they are not answered previously or are about a slightly different scenario to mine. I have the following need. I need a way ...
Zurf's user avatar
  • 115
2 votes
1 answer
424 views

Several questions here "hint" at PDF capabilities (executing js code, exfiltrating/probing network, etc) But If i want to create one PDF that will trigger my internal phishing test url, how ...
gcb's user avatar
  • 355
4 votes
1 answer
3k views

This is a follow-up to a question regarding recent Internet Archive hacking. Website web.archive.org was restored in a readonly mode but is it safe to use it? Looking at the brief disclosure of the ...
Alex's user avatar
  • 243
4 votes
2 answers
4k views

What's the reason why an attacker should choose to perform a clickjacking attack? If they create a malicious website, they could just perform the action automatically, they don't need to "trick&...
allexj's user avatar
  • 537
0 votes
1 answer
306 views

I know math.random() in javascript can be predicted if you know the exact outputs of it, but if I only know what it gives after doing math.floor(100 / (1.0001 - Math.random())), how would I use this ...
user318151's user avatar
1 vote
0 answers
120 views

I have a website with the following code: <input class="Header--search--form-input" name="search" value="&quot; onfocus=&quot;alert(1)&quot; autofocus=&quot;...
Уканис Алексей's user avatar
5 votes
1 answer
2k views

Is there a term for when an anchor tag opens a different URL than its href or performs some action such as showing a pop-up instead of opening expected URL? Excluding non-malicious cases such as a ...
user43117's user avatar
4 votes
1 answer
327 views

These days, most websites minify & concatenate their code. Are there techniques to identify open-source libraries within minified, concatenated code? I'm mostly interested so I can focus analysis ...
paj28's user avatar
  • 35k
0 votes
0 answers
68 views

I opened a pdf yesterday and found out it contained javascripts (that could possibly be malcious.) I wanted to know if the javascripts would trigger if I opened it in Word "protected view" ...
Kyle Yang's user avatar
1 vote
0 answers
102 views

I have a website that includes CSP rules: .use( helmet.contentSecurityPolicy({ directives: { defaultSrc: ["'self'"], scriptSrc: [ "'self'", "cdnjs....
ZedORYasuo's user avatar
5 votes
1 answer
948 views

From Cross-Origin Resource Sharing (CORS) - HTTP | MDN: CORS failures result in errors but for security reasons, specifics about the error are not available to JavaScript. All the code knows is that ...
Ooker's user avatar
  • 1,611
2 votes
1 answer
864 views

I want to be 100% secure, I create raw html this way: const template = document.createElement('template') template.innerHTML = html_raw const cloned = template.content.cloneNode(true) document....
The nothing's user avatar
0 votes
1 answer
796 views

I have submit the following text <script>javascript:alert(document.domain); in a feedback of a restaurant listed on a website and feedback is sent to website not restaurant. I want to verify but ...
Jaikaran saini's user avatar
1 vote
0 answers
184 views

Say there is a web page with two 3rd party javascript URL scripts embedded in it. One creates a support chat window and the other creates an iFrame within which a user enters payment information into ...
AndyW's user avatar
  • 111
1 vote
1 answer
178 views

I would like to initialise a React application with an OIDC token. This token will be stored in a private field of the "api client" object. This object will be used to execute API calls and ...
Marco Altieri's user avatar
1 vote
1 answer
192 views

I have been exploring customer support in a website as part of bug bounty program. I then started a chat with their customer support and pasted the following in the box: <!--<img src="-->...
Testing Graphics's user avatar
1 vote
1 answer
260 views

I am using bcrypt.js for basic login. I have found that the below code runs noticeably quicker when no user is found, since it exits immediately, and no check is done on the hash. This could give an ...
Timothy Pulliam's user avatar
1 vote
0 answers
192 views

I'm hosting a simple MariaDB/mySQL server on my Raspberry Pi. I would like to know whether or not this code is secure enough to reject an injection attempt made by login/signup, etc. function ...
Parking Master's user avatar
0 votes
1 answer
211 views

I have a pretty standard web app (react client, node server), https-enabled. I want to add the ability for the web app to access a device on the local LAN. The device has REST APIs and I can install ...
Jim B.'s user avatar
  • 101
3 votes
1 answer
23k views

Where to store JWT refresh tokens? My idea was to encrypt the refresh token with crypto-js AES and salt, keeping it in an environment variable (.env). Then, the refresh token would be stored in either ...
simple_developer's user avatar
1 vote
0 answers
158 views

It is possible to clobber document attributes, e.g.: <img name="cookie"> ... typeof(document.cookie) //=> 'object' Is there any way to prevent this from happening, access the ...
muhashi's user avatar
  • 11
2 votes
1 answer
2k views

When I was making my PicoBlaze Simulator in JavaScript, I added 6 examples of how to use it. Those examples are on my GitHub profile, they are the .psm (PicoBlaze Assembly) files. I decided not to ...
FlatAssembler's user avatar
0 votes
1 answer
298 views

Our business is in the payment processing space and one of our core products is a Payment Gateway API. In terms of security we issue an API Key, Signature and RSA Encryption for sensitive information ...
chris's user avatar
  • 103

1
2 3 4 5
28