These scripts target a critical Next.js / React Server Components (RSC) / Server Actions deserialization flaw (CVSS 10.0).
In affected versions:
- Special internal RSC payload formats
- Combined with multipart/form-data
- And Server Actions headers
| .filter-panel { | |
| margin:1rem 0; | |
| border-bottom:1px solid #eee; | |
| padding-bottom:1rem; | |
| } | |
| .filter-controls { | |
| display:flex; | |
| gap:1rem; | |
| margin-bottom:0.5rem; | |
| } |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\Route; | |
| use ReflectionClass; | |
| class CheckResourceRoutesCommand extends Command | |
| { |
| import { createSignal, createEffect } from "./signal.js"; | |
| const [name, setName] = createSignal("Reyansh"); | |
| const [age, setAge] = createSignal(2.5); | |
| // Effects automatically subscribes to signals used within | |
| createEffect(() => { | |
| // Runs whenever the count changes | |
| console.log(`Name: ${name()}, Age: ${age()}`); | |
| }); |
| import { createSignal, createEffect } from "./signal.js"; | |
| const [name, setName] = createSignal("Reyansh"); | |
| const [age, setAge] = createSignal(2.5); | |
| // Effects automatically subscribes to signals used within | |
| createEffect(() => { | |
| // Runs whenever the count changes | |
| console.log(`Name: ${name()}, Age: ${age()}`); | |
| }); |
| // Assume inputText is a string containing the text you want to prompt the AI with. | |
| const inputText = "What is the capital of India?"; | |
| async function useAI() { | |
| try { | |
| // Create a text session with the AI | |
| const session = await window.ai.createTextSession(); | |
| // Get a streaming response from the AI | |
| const result = session.promptStreaming(inputText); |
| function blank(value) { | |
| if(Array.isArray(value)) { | |
| return value.length === 0; | |
| } | |
| if(value instanceof Date) { | |
| return false; | |
| } | |
| if(typeof value === 'object' && value !== null) { |
This gist provides a jQuery plugin for observing events, offering improved flexibility and functionality. The plugin supports various syntaxes, including object-based and chained function-based, and allows for observing both DOM and AJAX events. It also includes error handling and validation for input parameters.
<input id="input">
<select id="select">
<option value="" selected></option>
<option value="1">1</option>| /* | |
| This JavaScript function parseURL takes a URL string as input and parses it into its various | |
| components such as protocol, host, path, query parameters, and relative path. It utilizes | |
| regular expressions to extract these components efficiently. The parsed components are then | |
| encapsulated within an object for convenient access and manipulation in your code. This can | |
| be useful in scenarios where you need to extract specific parts of a URL or analyze and modify | |
| URLs dynamically within your web applications. | |
| */ | |
| function parseURL(url) { |
| const generateUUID = () => | |
| "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => { | |
| var r = Math.random() * 16 | 0; | |
| return (c == "x" ? r : (r & 0x3 | 0x8)).toString(16); | |
| }); | |
| $1 = generateUUID(); | |
| $2 = generateUUID(); |