Some ressources are accessible by the attacker but not referenced by the web application. Discovery tool bruteforce url or domain with wordlist to discover new content.
NoSQL databases (aka "not only SQL") are non-tabular databases and store data differently than relational tables. The syntax is different from traditional SQL syntax. Example: Mongo
SQL injection (SQLi) is a web security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. It generally allows an attacker to view data that they are not normally able to retrieve. - Source
# List databasessqlmap-rreq--predict-output--dbs# List Tablessqlmap-rreq--predict-output--tables-Ddb# Dump Tablesqlmap-rreq--predict-output--dump-Ddb-Ttable# Dump Column(s)sqlmap-rreq--predict-output--dump-Ddb-Ttable-Ccolumn
-o Turn on all optimization switches
--predict-output Predict common queries output
--keep-alive Use persistent HTTP(s) connections
--null-connection Retrieve page length without actual HTTP response body
--threads=THREADS Max number of concurrent HTTP(s) requests (default 1)
--time-sec=TIMESEC Seconds to delay the DBMS response (default 5)
A path traversal attack aims to access files and directories that are stored outside the web root folder by manipulating variables that reference files. It may be possible to access arbitrary files and directories including application source code or configuration and critical system files.
Template engines are widely used by web applications to present dynamic data via web pages and emails. Unsafely embedding user input in templates enables Server-Side Template Injection. Template Injection can be used to directly attack web servers' internals and often obtain Remote Code Execution (RCE). source
XML external entity (XXE) injection is a web security vulnerability that allows an attacker to interfere with an application's processing of XML data. It often allows an attacker to view files on the application server filesystem, and to interact with any back-end or external systems that the application itself can access. - source
Read File
<!DOCTYPE foo [ <!ENTITY file SYSTEM "file:///etc/passwd">]><foo>Hello &file;</foo>
<!DOCTYPE foo [ <!ENTITY file SYSTEM "php://filter/read=convert.base64-encode/resource=/etc/passwd" >]><foo>Hello &file;</foo>
Get Link
<!DOCTYPE foo [ <!ENTITY file SYSTEM "http://example.com/path">]><foo>Hello &file;</foo>
<!DOCTYPE foo [ <!ENTITY file SYSTEM "php://filter/read=convert.base64-encode/resource=http://example.com/path">]><foo>Hello &file;</foo>
XSS Injection
XSS attacks enable attackers to inject client-side scripts into web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same-origin policy. source
Server XSS occurs when untrusted user supplied data is included in an HTTP response generated by the server. In this case, the entire vulnerability is in server-side code, and the browser is simply rendering the response and executing any valid script embedded in it. source
You can extract annotation files with this script:
pip3installpymupdfpython3script/get-pdf-annot.py-f"<HTTP(S)_URL> OR <PDF_PATH>"
Cookies
Cookies can be hijack by different way. Sign cookies can be decode to find vulnerable informations or bruteforce to find secret in order to create your own cookies. Other type of cookies need to be steal to hijack session.
Flask
Flask cookies are sign cookie so you can decode it or bruteforce the secret.
A JWT comes in this structure: AAAAAA.BBBBBB.CCCCCC. AAAAAA represents the header, BBBBBB represents the payload while CCCCCC represents the signature.