the_open_door
coffee
ESEN
← Cheatsheets

Web attacks

Discovery, CMS and each injection on its own, because each is detected and exploited differently: SQLi, LFI, upload-to-RCE, SSTI, command injection, XXE, SSRF, NoSQL, LDAP, JWT and deserialization.

Discovery & CMS

Discovery & fuzzing33 commands
  • Initial recon
  • Directories & files
  • Extensions & backup
  • VHosts / subdomains
  • Parameters
  • Login bruteforce
  • OSINT / metadata
  • IIS / short-name
  • Exploits
CMS (WordPress, Drupal, Joomla)15 commands
  • WordPress
  • Drupal
  • Joomla
  • CMS Made Simple

Injections

SQL injection41 commands
  • Detection / hidden data
  • Auth bypass
  • UNION: column count
  • UNION: text column
  • UNION: other tables
  • UNION: multi-value 1 column
  • DBMS: MySQL/MSSQL
  • DBMS: PostgreSQL
  • DBMS: Oracle
  • DBMS: no-Oracle
  • DBMS: SQLite
  • Blind: boolean
  • Blind: conditional error
  • Blind: visible error
  • Blind: time
  • Blind: time + data
  • OOB: interaction
  • OOB: exfiltration
  • Bypass: XML-encoding
  • Bypass: WAF
  • RCE / files
  • SQL truncation
  • DB privileges
  • sqlmap
NoSQL injection16 commands
  • Auth bypass ($ne/$gt)
  • Operator / JSON
  • Blind ($regex)
  • $where / JS
  • Automation
Command injection16 commands
  • Operators
  • Detection (blind)
  • Exfiltration / callback
  • Reverse shell
  • Filter bypass
SSTI (templates)18 commands
  • Detection
  • Jinja2 (Python)
  • Twig (PHP)
  • Freemarker/Velocity (Java)
  • Smarty (PHP)
  • ERB/Mako
  • Automation
  • Thymeleaf (Java)
  • Node (Pug/Jade)
LDAP injection15 commands
  • Auth bypass
  • Enumerate by response
  • Blind (char by char)
  • Legitimate queries
XSS (Cross-Site Scripting)29 commands
  • Detection
  • Context: HTML
  • Context: attribute
  • Context: JS string
  • Context: template literal
  • Context: AngularJS
  • Sink DOM
  • Filter bypass
  • Exploitation
  • Cookie theft
  • Tools

Files & server-side

LFI / traversal / RFI20 commands
  • Traversal / bypass
  • PHP wrappers
  • LFI to RCE
  • Log poisoning
  • Juicy files
  • RFI
File upload to RCE20 commands
  • Magic bytes / double extension
  • Alternative extensions
  • Content-Type / bypass
  • .htaccess
  • WebDAV (PUT/MOVE)
  • Payload
XXE (XML external entities)13 commands
  • File read
  • SSRF-via-XXE
  • OOB / blind
  • RCE
  • DoS
  • Bypass
SSRF (server-side request forgery)16 commands
  • Target: localhost
  • Target: internal back-end
  • Target: cloud metadata
  • Bypass: blacklist
  • Bypass: whitelist
  • Bypass: open-redirect
  • Blind: OOB
  • Blind: shellshock
  • Protocols
  • Detection

Auth & objects

JWT (JSON Web Tokens)16 commands
  • Recognize / manipulate
  • alg:none
  • Crack the secret (HS256)
  • Algorithm confusion
  • kid / jku / x5u
  • Frameworks
Insecure deserialization15 commands
  • Node.js
  • PHP
  • Python (pickle)
  • Java (ysoserial)
  • .NET (ysoserial.net)
  • YAML / Ruby
  • Encode

Apps & CVEs

Common apps (Tomcat, Jenkins, Git...)28 commands
  • Tomcat
  • Jenkins
  • Exposed Git
  • phpMyAdmin
  • Splunk
  • GitLab
  • CMS
  • Deserialization (Java/.NET)
  • Other
Log4Shell (CVE-2021-44228)9 commands
  • Detection / POC
  • JNDI variants
  • WAF bypass / obfuscation
  • Exploitation