Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@byu-oit/byu-cas
Advanced tools
var cas = require('byu-cas');
var ticket = doSomethingToGetTicket();
var service = 'http://example.com/signin';
cas.validate(ticket, service).then(function success(response) {
console.log("Ticket valid! Hello, " + response.username);
console.dir(response.attributes);
}).catch(function error(e) {
console.log("Invalid ticket. Error message was: " + e.message);
});
Note: this is removed in version 2.0.0 except when the environment variable
INSECURE
is set. @agrasley has a good explanation
of the risks involved when using this function.
var cas = require('byu-cas');
var service = 'http://example.com/signin';
cas.getTicket('username', 'password', service)
.then(function(ticket){
// do something with the ticket
});
Attributes come back in the following format
{ restOfName: 'Peter Oliver',
activeParttimeNonBYUEmployee: false,
activeParttimeInstructor: false,
inactiveFulltimeEmployee: false,
surname: 'Rabbit',
activeFulltimeInstructor: false,
memberOf: [],
preferredFirstName: 'Peter',
sortName: 'Rabbit, Peter Oliver',
activeFulltimeNonBYUEmployee: false,
inactiveParttimeNonBYUEmployee: false,
organization: false,
activeEligibletoRegisterStudent: false,
name: 'Peter Rabbit',
preferredSurname: false,
personId: '611290592',
inactiveParttimeInstructor: false,
netId: 'prabbit',
inactiveFulltimeNonBYUEmployee: false,
byuId: '872643180',
restricted: false,
emailAddress: 'prabbitbyu@sharklasers.com',
alumni: false,
inactiveParttimeEmployee: false,
inactiveFulltimeInstructor: false,
activeFulltimeEmployee: false,
fullName: 'Peter Oliver Rabbit IV',
activeParttimeEmployee: false }
We're pretty lax, but
README.md
FAQs
CAS tools specific to Brigham Young University, Provo
The npm package @byu-oit/byu-cas receives a total of 19 weekly downloads. As such, @byu-oit/byu-cas popularity was classified as not popular.
We found that @byu-oit/byu-cas demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.