lcfr-eth / smart-contract-vulndb

πŸ‹ An open dataset containing smart contract audit issues from various sources.

Home Page:https://tintinweb.github.io/smart-contract-vulndb/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Creed Rebellion!
[ 🌐 πŸ«‚ ]

Smart Contract VulnDB

An open dataset of publicly available smart contract issues aggregated from various audit reports. The dataset can be accessed at 🌻 vulns.json, is updated once a day, and a live demo is available 🌐 here.

LMK if you're building cool things with this dataset and I'll list them here πŸ˜ŠπŸ™

πŸ”Έ DataSet

image

const issue: Issue = {
  title: "<string:title>",
  severity: Severity.Medium,
  body: "<markdown-string:description>",
  dataSource: {
    name: "<string:path-like-report-identifier>",
    repo: "<string:git-or-http-url>",
    url: "<string:url>"
  }
};

πŸ”Έ Live Demo

image

πŸ”Έ Accessing the Latest Snapshot

  • Shell
β‡’  curl https://tintinweb.github.io/smart-contract-vulndb/cache/vulns.json
  • JavaScript
fetch('https://tintinweb.github.io/smart-contract-vulndb/cache/vulns.json')
  .then(response => response.text())
  .then(data => {
    // Process the retrieved data
    const issues = data.split('\n').filter(l => l.trim().length > 0).map(l => JSON.parse(l))
    console.log(issues);
  })
  .catch(error => {
    // Handle any errors that occurred during the request
    console.error('Error:', error);
  });

πŸ€“ For Nerds

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

About

πŸ‹ An open dataset containing smart contract audit issues from various sources.

https://tintinweb.github.io/smart-contract-vulndb/


Languages

Language:JavaScript 77.9%Language:CSS 22.1%