
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).
io.github.stephenbellanger.kit.lint:lint-kit
Advanced tools
Step 1. Add the maven central repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
mavenCentral()
}
}
Step 2. Add the dependency
dependencies {
implementation 'io.github.stephenbellanger.kit.lint:lint-kit:1.0'
}
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
htmlOutput file("${project.buildDir}/reports/lint/lint-report.html")
xmlOutput file("${project.buildDir}/reports/lint/lint-report.xml")
enable 'WrongThreadInterprocedural',
'UnusedIds',
'UnsupportedChromeOsHardware',
'UnpackedNativeCode',
'UnknownNullness',
'TypographyQuotes',
'SyntheticAccessor',
'StopShip',
'SelectableText',
'RequiredSize',
'Registered',
'PermissionImpliesUnsupportedChromeOsHardware',
'NoHardKeywords',
'NewerVersionAvailable',
'NegativeMargin',
'MissingRegistered',
'MinSdkTooLow',
'MangledCRLF',
'LogConditional',
'LambdaLast',
'KotlinPropertyAccess',
'IconExpectedSize',
'FieldGetter',
'EasterEgg',
'ConvertToWebp',
'BackButton',
'AppLinksAutoVerifyWarning',
'AppLinksAutoVerifyError',
'CanvasSize',
'IntentReset',
'InvalidNavigation',
'InvalidWakeLockTag',
'MissingDefaultResource',
'RequiresFeature',
'Slices',
'TranslucentOrientation',
'ValidActionsXml',
'Untranslatable',
'DeletedProvider',
'DeprecatedProvider',
'ProxyPassword',
'RiskyLibrary',
'ExpiredTargetSdkVersion',
'ExpiringTargetSdkVersion',
'OutdatedLibrary',
'SyntheticAccessor',
'Autofill',
'ConstantLocale',
'KotlinPropertyAccess',
'LambdaLast',
'NoHardKeywords',
'UnknownNullness'
disable 'TrustAllX509TrustManager',
'ObsoleteLintCustomCheck',
'SyntheticAccessor', // many use case in Kotlin
'Overdraw',
'MissingRegistered', // Lib are not part of sources sets for Lint
'PluralsCandidate', // Generation is done from POEditor, case to case exception is hard
'UnusedIds'
warningsAsErrors true
lintConfig file("${rootProject.projectDir}/config/lint/lint-config.xml")
}
}
Add maven-publish
and signing
plugins in build.gradle
file :
plugins {
id 'maven-publish'
id 'signing'
}
See in lint-kit
module maven-push.gradle
file and add this file in build.gradle file
:
apply from: 'maven-push.gradle'
In maven-push.gradle
:
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = GROUP
artifactId = ARTEFACT_ID
version = VERSION_CODE
pom {
name = POM_NAME
description = POM_DESCRIPTION
url = POM_URL
scm {
connection = POM_SCM_CONNECTION
developerConnection = POM_SCM_DEV_CONNECTION
url = POM_SCM_URL
}
licenses {
license {
name = POM_LICENCE_NAME
url = POM_LICENCE_URL
distribution = POM_LICENCE_DIST
}
}
developers {
developer {
id = POM_DEVELOPER_ID
name = POM_DEVELOPER_NAME
email = POM_DEVELOPER_EMAIL
}
}
}
repositories {
maven {
credentials {
username = getRepositoryUsername()
password = getRepositoryPassword()
}
url = version.endsWith('SNAPSHOT') ? getSnapshotRepositoryUrl() : getReleaseRepositoryUrl()
}
}
}
}
signing {
sign publishing.publications.release
}
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
}
artifacts {
archives androidSourcesJar
}
}
}
All variables are in gradle.properties
file.
VERSION_NAME=0.0.1
VERSION_CODE=1.0
GROUP=[com.example.library]
ARTEFACT_ID=[library-name]
POM_DESCRIPTION=[A great library]
POM_URL=[https://github.com/user/library-name]
POM_SCM_URL=[https://github.com/user/library-name]
POM_SCM_CONNECTION=[scm:git@github.user/library-name.git]
POM_SCM_DEV_CONNECTION=[scm:git@github.user/library-name.git]
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=[github_username]
POM_DEVELOPER_NAME=[Dupond developer]
POM_DEVELOPER_EMAIL=[duponddeveloper@gmail.com]
# Sonatype nexus
NEXUS_USERNAME=[sonatype_username]
NEXUS_PASSWORD=[sonatype_password]
# Signing with gpg
signing.keyId=[gpg_key_id] #Last 8 symbols of your gpg key
signing.password=[gpg_password]
signing.secretKeyRingFile=[/Users/username/.gnupg/secring.gpg]
FAQs
A library contain custom lint rules
We found that io.github.stephenbellanger.kit.lint:lint-kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.