
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
ngx-twitter-api
Advanced tools
Angular service of authorized request for twitter.
Install through npm
:
npm install --save ngx-twitter-api
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { TwitterService } from 'ngx-twitter-api';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule
],
providers: [TwitterService], // Add
bootstrap: [AppComponent]
})
export class AppModule { }
import { Component } from '@angular/core';
import { TwitterService } from 'ngx-twitter-api';
@Component({
selector: 'app-root',
template: `
<h1>{{title}}</h1>
<button (click)="getHomeTimeline()">get/home_timeline</button>
<p>{{result}}</p>
`
})
export class AppComponent {
title = 'app works!';
result = '';
constructor(private twitter: TwitterService){ }
getHomeTimeline(){
this.twitter.get(
'https://api.twitter.com/1.1/statuses/home_timeline.json',
{
count: 5
},
{
consumerKey: 'consumerKey',
consumerSecret: 'consumerSecret'
},
{
token: 'token',
tokenSecret: 'tokenSecret'
}
).subscribe((res)=>{
this.result = res.json().map(tweet => tweet.text);
});
}
}
In Web browser, JavaScript application cannot access external domain server because of Cross-Origin Resource Sharing.
This service supposes to be used in Cordova, Electron, Chrome Extensions or web security disabled browser.
FAQs
Angular service of authorized request for twitter.
The npm package ngx-twitter-api receives a total of 9 weekly downloads. As such, ngx-twitter-api popularity was classified as not popular.
We found that ngx-twitter-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.