
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).
@passmarked/css
Advanced tools
Rules related to checking the compatability of the CSS on the page ensuring the stylesheet works on older browsers too
Passmarked is a suite of tests that can be run against any page/website to identify issues with parity to most online tools in one package.
The Terminal Client is intended for use by developers to integrate into their workflow/CI servers but also integrate into their own application that might need to test websites and provide realtime feedback.
All of the checks on Passmarked can be voted on importance and are open-sourced, to encourage community involvement in fixing and adding new rules. We are building the living Web Standard and love any contributions.
The rules checked in this module are generated by a linter that is being used. At present we don't have any specific tests to list. We've taken note to disable rules that do not apply on minified CSS for us and kept the rules that are important for compatible and predictable styles active.
All generated rules are grouped and categorised over at passmarked.com/library/css which is the best option to view the list of rules we have generated so far by looking at pages. The UID's of those rules can then be used as with any other rule to check for specific conditions if required.
The rules are checked everytime a url is run through Passmarked or our API. To run using the hosted system head to passmarked.com or our Terminal Client use:
npm install -g passmarked
passmarked --filter=css example.com
The hosted version allows free runs from our homepage and the option to register a site to check in its entirety.
Using the Passmarked npm module (or directly via the API) integrations are also possible to get running reports with all the rules in a matter of seconds.
All rules can be run locally using our main integration library. This requires installing the package and any dependencies that the code might have such as a specific version of OpenSSL, see #dependencies
First ensure passmarked
is installed:
npm install passmarked
npm install @passmarked/css
After which the rules will be runnable using promises:
passmarked.createRunner(
require('@passmarked/css'), // this package
require('@passmarked/ssl'), // to test SSL
require('@passmarked/network') // to test network performance
).run({
url: 'http://example.com',
body: 'body of page here',
har: {log: {entries: []}}
}).then(function(payload) {
if (payload.hasRule('secure')) {
console.log('better check that ...');
}
var rules = payload.getRules();
for (var rule in rules) {
console.log('*', rules[rule].getMessage());
}
}).catch(console.error.bind(console));
Alternatively, callbacks are also available:
passmarked.createRunner(
require('@passmarked/css'),
require('@passmarked/ssl'),
require('@passmarked/network')
).run({
url: 'http://example.com',
body: 'body of page here',
har: {log: {entries: []}}
}, function(err, payload) {
if (payload.hasRule('secure')) {
console.log("better check that ...");
}
var rules = payload.getRules();
for (var rule in rules) {
console.log('*', rules[rule].getMessage());
}
});
This module does not need any specific external services or packages. This section will be updated if that ever changes with detailed setup steps/links.
Rules represent checks that occur in this module, all of these rules have a UID which can be used to check for specific rules. For the structure and more details see the Wiki page on Rules.
Rules also include a
type
which could becritical
,error
,warning
ornotice
giving a better view on the importance of the rule.
git clone git@github.com:passmarked/css.git
npm install
npm test
Pull requests have a prerequisite of passing tests. If your contribution is accepted, it will be merged into develop
(and then master
after staging tests by the team) which will then be deployed live to passmarked.com and on NPM for everyone to download and test.
To learn more visit:
Copyright 2016 Passmarked Inc
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Rules related to checking the compatability of the CSS on the page ensuring the stylesheet works on older browsers too
The npm package @passmarked/css receives a total of 4 weekly downloads. As such, @passmarked/css popularity was classified as not popular.
We found that @passmarked/css 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.