Mira
736 subscribers
801 photos
25 videos
20 files
263 links
sporadic attempts at cybersec.
personal channel.

files: @mira_files
playlist: @the_coding_playlist
Download Telegram
Ernest Hemingway once wrote, 'The world is a fine place and worth fighting for.' I agree with the second part.


[Seven]

#movie
3
You start thinkin' about the things you can't forget, and those are the things you can't forgive.


[The Little Things]

#movie
Since I finished mid exam, I was binging. Have a goodnight
74
lol
Got this achievement on GitHub recently. Literally been a while since I last committed too. Profile readme last updated in 2023 🙂 Lowkey wanted to get back to coding. I mean I do code now too but it's just me slapping some scripts or modifying it to my own need.
2
Mira
Oh, I saw a camel too lol
Wrote "I saw a camel" in Ocaml

let () = print_endline "I saw a camel"
Speaking of Ocaml, I kinda liked Hyperapp back then for an FP language based on Elm architecture to be used on the Frontend. I guess I made some random task manager inspired by the book I was reading. Zoomie, one of my projects made a longtime ago (opensourced it a year before or so), was also intended to be made with Hyperapp. I don't remember how I ended up using express js. Use this recent blog for a quick tour of Hyperapp if you're interested in functional programming with js.
👍3🔥1
This was Zoomie, a video chat app built with simple WebRTC and runs on express server. UI built with plain CSS and jQuery (I really sucked at UI)
🔥7
For my final yapping session, I noticed that Zoomie used handlebars as a templating engine. Lately, I was checking the Server Side Template Injection (SSTI) vulnerability. So... The concept of Server-Side Template Injection (SSTI) was first publicly introduced by PortSwigger researchers in 2015. It is basically when user input is unsafely embedded into server-side templates. These templates are used by web applications to generate dynamic content by combining user data with predefined structures. For example,

Hello {{ username }}


If 'username' contains an expression that's evaluated (say something like {{3*5}}), it will lead to a malicious code execution. Every server side language has its own template engine like for PHP: Smarty, Twig and for Python: Jinja2, Mako and for Java: Freemarker, Velocity. I personally used pug in node js for other projects and handlebars for zoomie. If a site uses a template engine, you can determine its type by running the following payload:

Jinja2 (Python Flask/Django): {{ 7*7 }}  
Freemarker (Java): ${7*7}
Velocity (Java): #set($a = 7*7)${a}
Thymeleaf (Java): ${7*7}
Twig (PHP Symfony): {{ 7*7 }}
Smarty (PHP): {$7*7}
Mako (Python): <% print 7*7 %>


The exploitation flow goes like: inject crafted payloads into vulnerable fields, and execute arbitrary commands or access sensitive server data, and then escalate privileges for full server control. Let us say for example the site uses Jinja2. If you get a response by running the identification payload, you can then execute commands like whoami on the server.

{{self._TemplateReference__context.cycler.__init__.__globals__.os.popen('whoami').read()}}


You can basically run commands you want directly on the server. This shit has medium or high severity impact since it leads to RCE and stuff. You can just avoid this by validating the user input at the first place.
can't relate with bros today
4
🤣17
feeling drained
unusual on Saturdays.
8😁3
Elementary school was wild man
I remembered a vivid memory where a grown ass adult guest telling us the difference between email and gmail was that we use electric to send emails and generator to send gmails. Bro should've been sentenced for life
🤣34🔥2
this random lady greeted me in a taxi.
confidence++
😁9🔥73
sup chat
🔥6🥰1👀1
Mira
The expectations of others were the bars I used for my own cage.
I would sacrifice pieces of my flesh, but I'd still be considered selfish for keeping my bones

#stolenpfp
💯42
> creates a private music channel so that no one knows the cringe songs i listen to
> *looks back*
> 10 views
👀7👍1🤣1
Mira
cringe songs
want access ?
Miki said they are smh good. not top tier taste like @Su_ch_is_life or any of the peeps who are into Art, but they pass the vibe check for a casual listen while doing some chores. here goes:

https://t.me/+CmBzrluJ4fExMDRk
🔥6