mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
12 lines
378 B
JavaScript
12 lines
378 B
JavaScript
import express from 'express';
|
|
import { WebView } from 'react-native';
|
|
|
|
var app = express();
|
|
|
|
app.get('/some/path', function(req, res) {
|
|
let tainted = req.param("code"); // $ Source[js/code-injection]
|
|
<WebView injectedJavaScript={tainted}/>; // $ Alert[js/code-injection]
|
|
let wv = <WebView/>;
|
|
wv.injectJavaScript(tainted); // $ Alert[js/code-injection]
|
|
});
|