This is the journey detailing how my name was added to humans.txt for scoring my first bug bounty, a severity 2 one at that! Im writing this as i’ve always personally been interested in how people discover security vulnerabilities. Furthermore, vulnerability itself is incredibly easy to exploit, details can be found at the end of this article. (pls scroll slowly so I can rake in some partner program earnings)

Back story

I was originally going to write an article describing testing I conducted in an attempt to figure out how much of the $5 monthly fee is given to writers through the Medium partner program. I had planned to test out different interactions which I thought might affect a writer’s compensation. Such as reading the article for different amounts of time and seeing if interacting with the article (through means such as: highlighting text, clapping) would affect the writer’s compensation. Since I am on a shoestring budget I only wanted to pay for a single “control” account to do all my testing from. I originally had 20+ different scenarios I intended to test and could only test a single one per day as Medium Partner Program earnings are calculated daily, I was looking for ways to automate the process. Thus, I went exploring through the chrome developer tools to analyze how data is transmitted back to medium.com


Image for post
Image for post

A paywall is a method of restricting access to content via a paid subscription. Beginning in 2017, Medium implemented a paywall on their website that writers could voluntarily opt into. In-exchange writers would receive a share of the membership fee paid by the reader.

Although I do not personally want to participate in Mediums “Partner program”. Many publications such as The Startup prioritize content that is placed behind the paywall:


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec quis tincidunt risus. Morbi quis ipsum vitae leo facilisis faucibus sit amet in est. Fusce iaculis nisi ipsum, nec ullamcorper diam porttitor sed. Pellentesque tristique venenatis feugiat. Nam in ex a nulla gravida aliquam in quis enim. Sed nec consectetur ipsum, in congue dolor. Mauris metus nunc, malesuada at pellentesque sit amet, porta vitae lorem. In non libero id quam cursus vestibulum eu eu arcu. Aliquam porta est sit amet accumsan euismod. Nullam ac massa augue. Suspendisse at pellentesque mauris. Proin posuere accumsan quam vitae congue.

Donec nisi dui, congue eget hendrerit ut, facilisis non lacus. Vestibulum commodo dignissim auctor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus ut velit placerat, cursus mi eget, elementum lorem. Curabitur neque felis, viverra interdum metus et, consectetur eleifend elit. Curabitur rhoncus volutpat augue, eget pharetra massa vestibulum eu. In hac habitasse platea dictumst. Maecenas sed semper eros. Donec auctor ipsum consequat ligula iaculis, rhoncus tristique elit rhoncus. Praesent eros mi, accumsan a porta id, hendrerit et mauris. Ut malesuada nulla ac est tincidunt posuere. …


Image for post
Image for post

Just a heads up, this tutorial relies heavily on the previous one I wrote about finding a functions roots which can be found here. (would highly recommend you read that before this)

Vertical asymptotes are vertical lines that a function never touches but will approach forever but never touch. If you’d like to read a brief description of Vertical Asymptotes I wrote a blog post about it that can be found here.

To start off we will take in user input, in this specific tutorial we will only be working with rational functions so we will take the numerator and denominator as separate inputs. …


Python is a fantastic programming language designed to be both intuitive to new programmers and flexible in terms of capability. But when you want to do something that on the surface seems simple like finding the roots of a function with python it’s much more complex than you may expect.

In this tutorial we are going to be writing a Python program that will attempt to find the roots of any function without importing in any modules. If you are looking for the easy way out SciPy has a great root finding library you can read the documentation to here.

Although you may think that python would have some way of isolating x in math functions and solving just like they taught you to in middle school. You’d unfortunately be wrong. Isolating variables is actually a fairly hard thing to do with a computer because there are too many factoring strategies Such as trig substitutions like tan(x)=sin(x)/cos(x) or the double angle identities or other factoring strategies like adding and subtracting something that it would take forever for us to program in.. …


We’ve all taken that pesky high school chem class where we were asked to balance chemical equations and felt mindless tasks like that could be automated.

Image for post
Image for post

Today we will be writing a short Python program designed to balance chemical equations. To start off we will be taking user input using Python’s built in input() function.


SymPy is a Python library written entirely in python that aims to become a full-featured computer algebra system (CAS) while keeping it’s code as simple as possible.

If you ever have to do advanced math things with Python i’d highly recommend SymPy. It's capable of solving equations, plotting graphs, taking integrals and most other math’y things you can think of.

A limit is the value that a function “approaches” as the input(x value) “approaches” some value. For example, the limit of x/x as x approaches zero would be written as follows

Image for post
Image for post

The format of SymPy’s limit function is as follows


Image for post
Image for post

We are going to write a Python program that takes a quadratic of the form ax²+bx+c and puts it into factored form a(bx+c)(dx+e). Our program will only factor problems where the roots are integers or a rational fraction e.g 3/4.

we will start off by making our program take the 3 variables as inputs and coverting the inputs to float numbers.


Image for post
Image for post

Mean, Median, Mode are the three most common types of averaging used in mathematics. With the Mean being what people most conventionally associate with the word “average”.

Mean:

The Mean of a list of numbers is what people most commonly refer to when talking about the “average” of a set of numbers. It is found by taking the sum of all the numbers and dividing it by the number of numbers (length of the list). …


If you’ve ever tried to take the odd root of a negative number such as:

Image for post
Image for post

With a generic calculator such as the Casio fx-991EX, you’d see that the 3rd root of negative 64 is negative 4. However, if you plug that same equation into the python shell you will see the following:

Mohammad-Ali Bandzar

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store