Skip to content

Instantly share code, notes, and snippets.

View aravindkumarsvg's full-sized avatar

Aravind Kumar SVG aravindkumarsvg

View GitHub Profile
@aravindkumarsvg
aravindkumarsvg / http_3xx_redirects_cheatsheet.md
Last active November 18, 2026 05:58
A quick reference for how clients treat the request method, body, and headers when they follow a redirect.

HTTP 3xx Redirects: Which Code Keeps or Changes the Request

A quick reference for how clients treat the request method, body, and headers when they follow a redirect.

TL;DR

  • 307 and 308 keep the request as it is: same method, same body.
  • 303 always changes the request to a GET.
  • 301 and 302 are inconsistent for historical reasons: clients change POST to GET.
  • No redirect code can turn a GET into a POST, PUT, or DELETE.
@aravindkumarsvg
aravindkumarsvg / shell_filter_bypass_git.md
Created November 4, 2026 06:14
Shell Command Filter Bypass Techniques with Git Examples

Shell Command Filter Bypass Techniques (Git Examples)

A reference for why string/regex matching on shell commands is not a reliable security control. Every example below runs git push (or an equivalent action) while evading a naive filter such as:

re='(^|[^[:alnum:]])git[[:space:]]+push([^[:alnum:]]|$)'
[[ "$cmd" =~ $re ]] && block

The root cause is always the same: the filter sees the raw string, but the shell executes the string only after quote removal, expansion, substitution, aliasing and path resolution. Any transformation between those two views is a bypass.

@aravindkumarsvg
aravindkumarsvg / natas19.js
Created June 1, 2026 13:17
OverTheWire natas 19 Solution. natas19 contains cookie manipulation vulnerability. This javascript based deno script contains the solution to obtain the password for natas20 by manipulating cookie
/**
* Prerequisites:
*
* 1. Update the Basic Authorization value
* 2. Install deno runtime - https://docs.deno.com/runtime/getting_started/installation/
*
* Command:
*
* deno run --node-modules-dir=none --allow-net --allow-env natas19.js
*/
@aravindkumarsvg
aravindkumarsvg / natas18.js
Created June 1, 2026 12:32
OverTheWire natas 18 Solution. natas18 contains cookie manipulation vulnerability. This javascript based deno script contains the solution to obtain the password for natas19 by manipulating cookie
/**
* Prerequisites:
*
* 1. Update the Basic Authorization value
* 2. Install deno runtime - https://docs.deno.com/runtime/getting_started/installation/
*
* Command:
*
* deno run --node-modules-dir=none --allow-net --allow-env natas18.js
*/
@aravindkumarsvg
aravindkumarsvg / natas17.js
Created June 1, 2026 10:24
OverTheWire natas 17 Solution. natas17 contains time based SQL Injection vulnerability. This javascript based deno script contains the solution to obtain the password for natas18 by manipulating time based SQL Injection
/**
* Prerequisites:
*
* 1. Update the Basic Authorization value
* 2. Install deno runtime - https://docs.deno.com/runtime/getting_started/installation/
*
* Command:
*
* deno run --node-modules-dir=none --allow-net --allow-env natas17.js
*/
@aravindkumarsvg
aravindkumarsvg / natas16.js
Last active May 27, 2026 13:27
OverTheWire natas 16 Solution. natas16 contains command injection vulnerability. This javascript based deno script contains the solution to obtain the password for natas17 by manipulating command injection
/**
* Prerequisites:
*
* 1. Update the Basic Authorization value
* 2. Install deno runtime - https://docs.deno.com/runtime/getting_started/installation/
*
* Command:
*
* deno run --node-modules-dir=auto --allow-net --allow-env natas16.js
*
@aravindkumarsvg
aravindkumarsvg / http_request_smuggling_cheatsheet.md
Last active May 2, 2026 08:26
HTTP Request Smuggling Cheatsheet

🔥 HTTP Request Smuggling Cheat Sheet

🧠 Core Idea

Smuggling happens when:

  • Frontend (proxy/load balancer) and
  • Backend (app server)

disagree on request boundaries

@aravindkumarsvg
aravindkumarsvg / uri_delimiters_quirks.md
Created April 17, 2026 12:55
URI Delimiters & Parsing Differences

URI Delimiters & Parsing Differences


🌐 Standard URI Delimiters (RFC 3986)

Delimiter Purpose
? Start query string
& Query param separator
@aravindkumarsvg
aravindkumarsvg / jsonp_cheatsheet.md
Last active April 17, 2026 12:48
JSONP cheatsheet

JSONP Security Cheat Sheet


🌐 What is JSONP?

JSONP (JSON with Padding) is a technique to fetch cross-origin data using

<script> tags.
@aravindkumarsvg
aravindkumarsvg / Reflection_Introspection-Cheatsheet.md
Created March 21, 2026 09:53
Reflection, Introspection - Cheatsheet

Reflection & Related Concepts Cheat Sheet

What is Reflection?

Reflection allows a program to inspect and modify its own structure and behavior at runtime.


Reflection in Java