Exploit databaseDownload repository ZIP
GH-1a2737bb03860cbc8b098024ec3e8072
karthi-the-hacker/cve-2026-53787
Sources for CVE-2026-53787
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files9
karthi-the-hacker/cve-2026-53787Revision 0b732d52ba64
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
includes/app.js
JavaScript · 5,501 bytes
/**
* 🔥 CVE-2026-53787
* Magento Amasty Order Attributes Vulnerability Scanner
*
* Author : Karthikeyan V (karthithehacker)
* Website : https://karthithehacker.com
* GitHub : https://github.com/Cappricio-Securities
*
* Authorized security testing only.
*/
const fs = require('fs');
const path = require('path');
const { parseArgs, sanitizeUrl } = require('./utils');
const { printHelp, showBanner } = require('./help');
const { readUrlsFromFile } = require('./filereader');
const { isValidUrl, isValidProxy } = require('./validate');
const { scanner } = require('./scan');
const { reportToApi } = require('./bot');
// Database
const {
incrementRunCount,
setChatId,
addVulnerability,
getData
} = require('./db');
// Terminal colors
const colors = {
reset: '\x1b[0m',
red: '\x1b[31m',
green: '\x1b[32m',
cyan: '\x1b[36m',
white: '\x1b[37m',
bright: '\x1b[1m'
};
async function run() {
// Parse CLI arguments
const args = await parseArgs(process.argv);
if (args.help) {
printHelp();
return;
}
// Configure Telegram Chat ID
if (args.chatid && !args.url && !args.list) {
await setChatId(args.chatid);
console.log(
`${colors.green}[+] Chat ID saved: ${args.chatid}${colors.reset}`
);
return;
}
// Validate input
if (!args.url && !args.list) {
throw new Error(
'Either -u/--url or -l/--list is required.'
);
}
// Validate proxy
if (args.proxy && !isValidProxy(args.proxy)) {
throw new Error('Invalid proxy format. Use host:port');
}
// Collect target URLs
let urls = [];
if (args.url) {
const normalized = sanitizeUrl(args.url);
if (!isValidUrl(normalized)) {
throw new Error('Invalid URL provided.');
}
urls.push(normalized);
}
// Read targets from file
if (args.list) {
const listPath = path.resolve(process.cwd(), args.list);
if (!fs.existsSync(listPath)) {
throw new Error(`URL list file not found: ${listPath}`);
}
urls = urls.concat(
await readUrlsFromFile(listPath)
);
}
// Remove duplicates and invalid URLs
urls = [...new Set(urls)].filter(isValidUrl);
if (!urls.length) {
throw new Error('No valid URLs to scan.');
}
// Update database
await incrementRunCount();
if (args.chatid) {
await setChatId(args.chatid);
}
const dbData = await getData();
const chatid = args.chatid || dbData.chatid;
// Display banner
showBanner();
console.log(
`\n[+] Starting CVE-2026-53787 scan for ${urls.length} target(s)...\n`
);
// Scan results
const scanResults = [];
// Scan targets sequentially
for (const url of urls) {
try {
const instance = new scanner(url, args.output);
const result = await instance.start();
scanResults.push(result);
// Display only verified findings
if (result.vulnerable && result.verified) {
console.log(
`\n${colors.red}${colors.bright}💸[Vulnerable]${colors.reset} ======> ${colors.white}${colors.bright}${result.url}${colors.reset}`
);
console.log(
`${colors.green}${colors.bright}📸PoC-Url->$ ${result.uploadedFile}${colors.reset}\n`
);
}
} catch (error) {
// Keep errors out of normal scan output.
scanResults.push({
url,
vulnerable: false,
verified: false,
reason: error.message
});
}
}
// Filter verified findings
const vulnerable = scanResults.filter(
result => result.vulnerable && result.verified
);
// Database and Telegram reporting
for (const item of vulnerable) {
await addVulnerability(item.url);
if (chatid) {
try {
const report = await reportToApi(item, chatid);
if (report.success) {
console.log(
`${colors.green}[+] Bot reported vulnerability for ${item.url}${colors.reset}`
);
} else {
console.log(
`${colors.green}[!] Bot reporting failed${colors.reset}`
);
}
} catch {
console.log(
`${colors.green}[!] Bot reporting failed${colors.reset}`
);
}
}
}
// Save verified findings
// Save full PoC URLs
if (args.output) {
const outFile = path.resolve(process.cwd(), args.output);
fs.writeFileSync(
outFile,
vulnerable
.map(item => item.uploadedFile)
.filter(Boolean)
.join('\n') +
(vulnerable.length ? '\n' : ''),
'utf8'
);
console.log(
`\n[+] Saved ${vulnerable.length} PoC URL(s) to ${outFile}`
);
}
// Final statistics
const finalData = await getData();
console.log(
`\n[+] Scan completed. vulnerable=${vulnerable.length} run_count=${finalData.run_count}`
);
if (finalData.chatid) {
console.log(
`[+] chatid configured: ${finalData.chatid}`
);
}
}
module.exports = {
run
};