Zum Hauptinhalt springen
LIVE
CVSS 9.8CVE-2026-124997 | The WP Remote Users Sync plugin for WordPress is vulnerable to Privilege Escalation via Account Takeover in versions up to, and including, 2.3.0. The `handle_notification()` function in the Password sync action resolves the target user exclusively by login string via `get_user_by('login', $data['username'])` and performs no cross-site identity attestation — such as email, numeric ID, or UUID mapping — and no role parity check before passing the peer-suppliedCVSS 5.1CVE-2026-140056 | A security vulnerability has been detected in yangzongzhuan RuoYi up to 4.8.3. The affected element is the function menuItem of the file ruoyi-admin/src/main/resources/static/ruoyi/index.js of the component Menu Management Sidebar Tab Renderer. The manipulation of the argument menuName leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used. The vendor was contacted early about thCVSS 8.0CVE-2026-140448 | Improper path matching in Snowflake CLI & Snowflake CLI labs versions prior to 3.33.0 caused the snow stage execute and snow git execute commands to select files by raw string prefix rather than by directory boundary. When a directory path was given without a trailing slash, files in sibling locations whose names began with the same characters were also selected and executed. An attacker who can write files to a sibling location of a stage directory that a vCVSS 6.9CVE-2026-140053 | A weakness has been identified in g-mr SmartCall up to 1.0.9. Impacted is the function queryUserByLoginId of the file UserClientController.java of the component smart-user. Executing a manipulation of the argument loginId can lead to improper access controls. The attack may be performed from remote. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in anyCVSS 6.9CVE-2026-140052 | A vulnerability was identified in g-mr SmartCall up to 1.0.9. This vulnerability affects the function token of the file smart-maxkb/src/main/java/com/qidiangk/smart/maxkb/controller/TokenController.java of the component smart-maxkb. Such manipulation leads to information disclosure. The attack can be executed remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.CVSS 6.9CVE-2026-140051 | A vulnerability was found in g-mr SmartCall 1.0.9. Affected by this issue is the function online of the file smart-upms/smart-user/src/main/java/com/qidiangk/smart/user/controller/UserController.java of the component Smart-user User-Online API. The manipulation of the argument userId results in improper access controls. The attack may be launched remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosurCVSS 6.9CVE-2026-140043 | A vulnerability was found in frangoteam FUXA up to 1.3.5. This impacts the function updateDeviceValues of the file server/runtime/index.js of the component Socket.IO Runtime. The manipulation results in denial of service. The attack may be performed from remote. The exploit has been made public and could be used. Upgrading to version 1.3.6 will fix this issue. The patch is identified as 6f8a0dfd00a23279160a8711a44940ef38ea6a3c. Upgrading the affected componeCVSS 9.4CVE-2026-140042 | A vulnerability has been found in WAVLINK WL-WN530BE1-A M30BE1_V251117. This affects the function FUN_0001f94c of the file /protocol.csp of the component ioos. The manipulation of the argument device_name leads to stack-based buffer overflow. The attack is possible to be carried out remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

JavaScript Functions: Basic Concepts You Should Know

Introduction When learning JavaScript, one of the first concepts you’ll encounter is functions. Functions are the building blocks of JavaScript. They help you o…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung




Introduction



When learning JavaScript, one of the first concepts you’ll encounter is functions.



Functions are the building blocks of JavaScript. They help you organize code, avoid repetition, and make your programs easier to understand. If variables store data, functions define behavior.



You’ll use functions everywhere: handling user input, processing data, calling APIs, and structuring your code.



In this article, we’ll cover:




  1. What is a function

  2. Function declarations

  3. Function expressions

  4. Parameters vs arguments

  5. Return values

  6. Arrow Functions

  7. Why Functions Matter






1. What is a Function?



A function is a reusable block of code designed to perform a specific task.



Think of it like a machine:



Input → Process → Output




function greet() {
console.log("Hello!");
}






To run the function, you call it:




greet(); // Hello!









2. Function Declaration



This is the most common way to define a function:




function add(a, b) {
return a + b;
}






💡 Explanation:




  • Defined using the function keyword

  • Can be called before it is declared (because of hoisting)



Key parts:

function → keyword

add → function name

a, b → parameters

return → output value




add(); // ✅ Works!

function add(a, b) {
return a + b;
}






💡 Why does this work?



JavaScript reads the code first, and function declarations are stored in memory during the initial phase (hoisting).

That’s why you can call the function even before it’s defined in the code.





3. Function Expressions



Functions can also be stored in variables:




function add(a, b) {
return a + b;
}






💡 Explanation:




  • Assigned to a variable

  • Cannot be used before initialization




add(); // ❌ Error: Cannot access before initialization

const add = function (a, b) {
return a + b;
};






💡 Why does this cause an error?



Because:



const add has not been initialized yet when it is called.

The function itself is not in memory at that moment.





4. Parameters vs Arguments



This is a common beginner confusion:




  • Parameter: variable in function definition

  • Argument: actual value passed in



function greet(name) { // parameter
return `Hello, ${name}`;
}

greet("Dini"); // argument







5. Return Values



Functions can send data back using return.




function multiply(a, b) {
return a * b;
}

const result = multiply(2, 3);
console.log(result); // 6






If you don’t use return, the function returns undefined.






6. Arrow Functions (Modern Syntax)



A shorter way to write functions:




const add = (a, b) => {
return a + b;
};






Even shorter (implicit return):




const add = (a, b) => a + b;









7. Why Functions Matter



Functions help you:




  • Avoid repeating code (DRY principle)

  • Make code more readable

  • Break problems into smaller pieces

  • Reuse logic easily






Conclusion



Functions are fundamental to writing JavaScript effectively.



Once you understand:




  • how to define them

  • how data flows in/out

  • and how to reuse them



you’ve unlocked a huge part of programming.






References



https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions

https://javascript.info/function-basics

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten JavaScript Functions: Basic Concepts You Should Know

Thematisch verwandte Begriffe: JavaScript, Functions, Basic, Concepts · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag