-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array elements left uninitialized in Array.prototype.slice() for primitive this values. #188
Comments
njs scripts have no remote access, so the attacker can't control them and thus it's not a remote code execution. |
emmmm, but i think this may cause at least cpde execution, if u can control the js it executed.Maybe LPE?
…---Original---
From: "Valentin V. Bartenev"<notifications@github.com>
Date: Wed, Jul 3, 2019 15:53 PM
To: "nginx/njs"<njs@noreply.github.com>;
Cc: "Author"<author@noreply.github.com>;"lokihardt"<nine.twelve@foxmail.com>;
Subject: Re: [nginx/njs] Logic problems happen in the nxt_lvlhsh.c (#188)
njs scripts have no remote access, so the attacker can't control them and thus it's not a remote code execution.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
njs is used for nginx configuration and is not an application server. njs only executes js code from a static file which is a part of nginx config file (which must be trusted source anyway). |
@l0kihardt If you can control njs script on a server, then you already have a root access and can control the whole server without any bugs needed. |
Yeah sure, I use ubuntu 18.04, and did something like this
```
export CC=clang
export CFLAGS=-fsanitize=address
./configure
make
```
…------------------ 原始邮件 ------------------
发件人: "Dmitry Volyntsev"<notifications@github.com>;
发送时间: 2019年7月3日(星期三) 下午4:07
收件人: "nginx/njs"<njs@noreply.github.com>;
抄送: "3087136937"<nine.twelve@foxmail.com>;"Mention"<mention@noreply.github.com>;
主题: Re: [nginx/njs] Logic problems happen in the nxt_lvlhsh.c (#188)
@l0kihardt
please, also share the way you run your POC. Cannot reproduce it (with ASAN enabled).
$ cat github188.js var _export = 1; _export.__proto__.length= _export.__proto__.sum = [1].slice Error(_export.sum((_export.__proto__.length= [1].toString(RegExp(Error()))) ===('loading exception'))) //export default _export; _export; console.log(_export) $ ./build/njs github188.js 1
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
env
ubuntu 18.04
njs 0feca92
gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
built with ASAN on
bug
The text was updated successfully, but these errors were encountered: