From 596d07d8322253e5e2ccaf9686280fd28bb0c19d Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Sun, 7 Jul 2024 20:24:10 +0530 Subject: [PATCH 01/10] added blt tomato --- blt/urls.py | 2 + website/fixtures/blt_tomato_project_link.json | 122 ++++++++++++++++++ website/static/img/tomato-svgrepo-com.svg | 49 +++++++ website/templates/blt_tomato.html | 59 +++++++++ website/templates/includes/sidenav.html | 10 ++ website/views.py | 21 +++ 6 files changed, 263 insertions(+) create mode 100644 website/fixtures/blt_tomato_project_link.json create mode 100644 website/static/img/tomato-svgrepo-com.svg create mode 100644 website/templates/blt_tomato.html diff --git a/blt/urls.py b/blt/urls.py index 37bc2f7d2..b2980c4f0 100644 --- a/blt/urls.py +++ b/blt/urls.py @@ -94,6 +94,7 @@ subscribe_to_domains, vote_count, weekly_report, + blt_tomato ) favicon_view = RedirectView.as_view(url="/static/favicon.ico", permanent=True) @@ -534,6 +535,7 @@ name="today-contributor-stats", ), path("api/chatbot/conversation/", chatbot_conversation, name="chatbot_conversation"), + path("blt-tomato/", blt_tomato, name="blt-tomato"), ] if settings.DEBUG: diff --git a/website/fixtures/blt_tomato_project_link.json b/website/fixtures/blt_tomato_project_link.json new file mode 100644 index 000000000..6de8578ee --- /dev/null +++ b/website/fixtures/blt_tomato_project_link.json @@ -0,0 +1,122 @@ +[ + { + "project_name": "O-Saft", + "repo_url": "https://github.com/OWASP/O-Saft", + "funding_url": "https://raw.githubusercontent.com/OWASP/O-Saft/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-o-saft&title=OWASP+O-Saft, OWASP" + }, + { + "project_name": "OWASP-VWAD", + "repo_url": "https://github.com/OWASP/OWASP-VWAD", + "funding_url": "https://raw.githubusercontent.com/OWASP/OWASP-VWAD/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-vulnerable-web-applications-directory&title=OWASP+Vulnerable+Web+Applications+Directory" + }, + { + "project_name": "ASVS", + "repo_url": "https://github.com/OWASP/ASVS", + "funding_url": "https://raw.githubusercontent.com/OWASP/ASVS/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-application-security-verification-standard&title=OWASP+Application+Security+Verification+Standard, OWASP" + }, + { + "project_name": "ZSC", + "repo_url": "https://github.com/OWASP/ZSC", + "funding_url": "https://raw.githubusercontent.com/OWASP/ZSC/master/.github/FUNDING.yml", + "funding_details": "zdresearch" + }, + { + "project_name": "Top10", + "repo_url": "https://github.com/OWASP/Top10", + "funding_url": "https://raw.githubusercontent.com/OWASP/Top10/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-top-ten&title=OWASP+Top+Ten, OWASP" + }, + { + "project_name": "MAS", + "repo_url": "https://github.com/OWASP/owasp-masvs", + "funding_url": "https://raw.githubusercontent.com/OWASP/owasp-masvs/master/.github/FUNDING.yml", + "funding_details": "https://www.icrc.org/en/donate/ukraine" + }, + { + "project_name": "owasp-mastg", + "repo_url": "https://github.com/OWASP/owasp-mastg", + "funding_url": "https://raw.githubusercontent.com/OWASP/owasp-mastg/master/.github/FUNDING.yml", + "funding_details": "https://www.icrc.org/en/donate/ukraine" + }, + { + "project_name": "Nettacker", + "repo_url": "https://github.com/OWASP/Nettacker", + "funding_url": "https://raw.githubusercontent.com/OWASP/Nettacker/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-nettacker&title=OWASP+Nettacker" + }, + { + "project_name": "wstg", + "repo_url": "https://github.com/OWASP/wstg", + "funding_url": "https://raw.githubusercontent.com/OWASP/wstg/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-web-security-testing-guide&title=OWASP+Web+Security+Testing+Guide, OWASP" + }, + { + "project_name": "Python-Honeypot", + "repo_url": "https://github.com/OWASP/Python-Honeypot", + "funding_url": "https://raw.githubusercontent.com/OWASP/Python-Honeypot/master/.github/FUNDING.yml", + "funding_details": "zdresearch" + }, + { + "project_name": "API-Security", + "repo_url": "https://github.com/OWASP/API-Security", + "funding_url": "https://raw.githubusercontent.com/OWASP/API-Security/master/.github/FUNDING.yml", + "funding_details": "OWASP, https://owasp.org/donate/?reponame=www-project-api-security&title=OWASP+API+Security+Project" + }, + { + "project_name": "Intelligent-Intrusion-Detection-System", + "repo_url": "https://github.com/OWASP/Intelligent-Intrusion-Detection-System", + "funding_url": "https://raw.githubusercontent.com/OWASP/Intelligent-Intrusion-Detection-System/master/.github/FUNDING.yml", + "funding_details": "hardlyhuman, gsriharsha, https://www.paypal.me/SRIHARSHAGAJAVALLI" + }, + { + "project_name": "owasp.github.io", + "repo_url": "https://github.com/OWASP/owasp.github.io", + "funding_url": "https://raw.githubusercontent.com/OWASP/owasp.github.io/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/" + }, + { + "project_name": "Wrongsecrets", + "repo_url": "https://github.com/OWASP/wrongsecrets", + "funding_url": "https://raw.githubusercontent.com/OWASP/wrongsecrets/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-wrongsecrets&title=OWASP+wrongsecrets, https://www.icrc.org/en/donate/ukraine, OWASP" + }, + { + "project_name": "wrongsecrets-binaries", + "repo_url": "https://github.com/OWASP/wrongsecrets-binaries", + "funding_url": "https://raw.githubusercontent.com/OWASP/wrongsecrets-binaries/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-wrongsecrets&title=OWASP+wrongsecrets" + }, + { + "project_name": "wrongsecrets-ctf-party", + "repo_url": "https://github.com/OWASP/wrongsecrets-ctf-party", + "funding_url": "https://raw.githubusercontent.com/OWASP/wrongsecrets-ctf-party/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-wrongsecrets&title=OWASP+wrongsecrets, https://www.icrc.org/en/donate/ukraine, OWASP" + }, + { + "project_name": "secure-coding-practices-quick-reference-guide", + "repo_url": "https://github.com/OWASP/secure-coding-practices-quick-reference-guide", + "funding_url": "https://raw.githubusercontent.com/OWASP/secure-coding-practices-quick-reference-guide/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate/?reponame=www-project-secure-coding-practices-quick-reference-guide&title=OWASP+Secure+Coding+Practices+Quick+Reference+Guide, OWASP" + }, + { + "project_name": "BLT", + "repo_url": "https://github.com/OWASP-BLT/BLT", + "funding_url": "https://raw.githubusercontent.com/OWASP-BLT/BLT/master/.github/FUNDING.yml", + "funding_details": "https://owasp.org/donate?reponame=www-project-bug-logging-tool&title=OWASP+Bug+logging+tool" + }, + { + "project_name": "Juice Shop", + "repo_url": "https://github.com/juice-shop/juice-shop", + "funding_url": "https://raw.githubusercontent.com/juice-shop/juice-shop/master/.github/FUNDING.yml", + "funding_details": "https://sponsor.owasp-juice.shop, OWASP" + }, + { + "project_name": "ModSecurity Core Rule Set", + "repo_url": "https://github.com/coreruleset/coreruleset", + "funding_url": "https://raw.githubusercontent.com/coreruleset/coreruleset/master/.github/FUNDING.yml", + "funding_details": "https://coreruleset.org/donate" + } +] diff --git a/website/static/img/tomato-svgrepo-com.svg b/website/static/img/tomato-svgrepo-com.svg new file mode 100644 index 000000000..712519365 --- /dev/null +++ b/website/static/img/tomato-svgrepo-com.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/website/templates/blt_tomato.html b/website/templates/blt_tomato.html new file mode 100644 index 000000000..5c29b5614 --- /dev/null +++ b/website/templates/blt_tomato.html @@ -0,0 +1,59 @@ +{% extends "base.html" %} +{% load static %} +{% block content %} + {% include "includes/sidenav.html" %} +
+

BLT Tomato - This is an OWASP BLT project created to help other OWASP projects.

+ {% if data %} +

The following OWASP projects are seeking funding and have a funding.yml file:

+ + + + {% endif %} +
+{% endblock content %} + + diff --git a/website/templates/includes/sidenav.html b/website/templates/includes/sidenav.html index 0c74be0d6..64f80ced3 100644 --- a/website/templates/includes/sidenav.html +++ b/website/templates/includes/sidenav.html @@ -1,3 +1,4 @@ +{% load static %}