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.
exchange-autodiscover
Advanced tools
Access Microsoft's SOAP Autodiscover Service with optional DNS querying
Retrieve the URL of your EWS by accessing Microsoft's SOAP Autodiscover Service.
Differs from other similar packages in that it queries the DNS. It also tries out all the potential autodiscover urls in parallel, sacrificing a bit more bandwidth for speed.
const autodiscover = require('exchange-autodiscover');
// Promise
autodiscover({ emailAddress: "foo@bar.onmicrosoft.com", password: "pass" })
.then(console.log.bind(console)) // 'https://outlook.microsoft.com/ews/exchange.asmx'
.catch(console.error.bind(console));
// Callback
autodiscover({
emailAddress: "foobar@yourdomain.com",
password: "pass",
username: "ad\\foobar77"
}, function(err, ewsUrl) {
if (err) {
console.error(err);
} else {
console.log(ewsUrl); // 'https://mail.yourdomain.com/ews/exchange.asmx'
}
});
You can optionally request any of the extra settings found here. This will return an object with matched settings (EWS address will always be included by default).
// With extra settings
autodiscover({
emailAddress: "foo@bar.onmicrosoft.com",
password: "pass",
settings: [
'EwsSupportedSchemas',
'ExternalEwsVersion'
]
}).then(function (settings) {
console.log(settings);
// {
// EwsSupportedSchemas: 'Exchange2007, Exchange2007_SP1, Exchange2010, Exchange2010_SP1, Exchange2010_SP2, Exchange2013, Exchange2013_SP1, Exchange2015',
// ExternalEwsUrl: 'https://outlook.office365.com/EWS/Exchange.asmx',
// ExternalEwsVersion: '15.00.0000.000'
// }
});
/**
* Tries to find the url of the EWS.
* @param {Object} params
* @param {string} params.emailAddress
* @param {string} params.password
* @param {string} [params.username] - Defaults to emailAddress
* @param {boolean} [params.queryDns] - Defaults to true
* @param {string[]} [params.settings]
* @param {Function} [cb]
* @returns {Promise} Resolves with the EWS url
*/
autodiscover(params, callback);
FAQs
Access Microsoft's SOAP Autodiscover Service with optional DNS querying
The npm package exchange-autodiscover receives a total of 19 weekly downloads. As such, exchange-autodiscover popularity was classified as not popular.
We found that exchange-autodiscover 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
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.