ren
ren3d ago

api security

Im creating a graduation project related to api security, mainly focused on api discovery, sqli/jsoni also for the owasp top 10( BOLA, BA, BOPLA, etc)detector, anyone got any tips, anything, any info, anything helps
56 Replies
ren
renOP3d ago
i already got several skeleton scripts made researching through stackoverflow reddit and claude i can provide if needed
_null
_null3d ago
I wish I could help with this. I know enough of the basics to understand what you are referencing, but I don't know that I could be very helpful. I would be interesting in seeing some of the skeleton outline you have prepared, if you care to share. Maybe it will give me some ideas to share as well.
ren
renOP3d ago
i have uh currently a json and sqli detector that im refining
ren
renOP3d ago
ye uh ignore the comments got carried away
ren
renOP3d ago
this is the discovery tool
ren
renOP3d ago
i also got like 10 vulnerable flask server scripts that i can provide if needed aswell
_null
_null3d ago
haha, you just casually dropped over a thousand lines of code. Sorry about the automod
ren
renOP3d ago
ye its uhm quite funny
ren
renOP3d ago
i do also have this broken authentication "detector"
_null
_null3d ago
Did you write all this yourself?
ren
renOP3d ago
me and a friend
_null
_null3d ago
thats quite prolific
ren
renOP3d ago
well all of these require a "not small" number of fixes and refining to do but uh its a skeleton i'd say
_null
_null3d ago
I mean clearly thats not going to be a comprehensive scanner, but its still very impressive
ren
renOP3d ago
the discovery tool is somewhat decent, well as of my testings on my friend's app and my school's website hehe thanks, started with the research around a month ago, i do still got like a year or so to finish this so not in a big rush i'd say
Keller
Keller3d ago
so uh what does this do, im curious
ren
renOP3d ago
uh checks a server for vulnerabilities basically well thats what its intended to do
Keller
Keller3d ago
cool
ren
renOP3d ago
and this tries to scrap a website for most/all of the api endpoints it can find
_null
_null3d ago
I'm still reading through all the scripts, but I think you are doing good work
ren
renOP3d ago
the discovery tool runs with several phases, including going through common endpoints like robots.txt, sitemap.xml etc, it also goes through js if i remember correctly
Keller
Keller3d ago
did u use any ai for this
ren
renOP3d ago
thanks man, but uh i gotta get a nap its like 5am, got class at 10 ye some functions are not sure about my friend's side hes basically a genius
_null
_null3d ago
yeah, the api scanner seems like really nice work too
ren
renOP3d ago
ah also, both the sql and the json detector, basically runs with the api scanner, the scanner exports a really ugly json report i'd say tbh, i got a converter for that tho, and what im saying is, both injection detectors read off the endpoint config
ren
renOP3d ago
this is the before and after of the convertor
ren
renOP3d ago
school's website so shouldnt be a problem to share this the scanner do have some flaws tho, the amount of request sent into the server is a decently large number this one was tested and resulted in around 11000 requests
ren
renOP3d ago
result convertor if anyone is interested
_null
_null3d ago
yeah, it would be very noisy. Most tools are though
ren
renOP3d ago
i do also have a automated api security report, https://hackmd.io/@gHN2fcRCQOW5XRWLoFEHtw/SJTYYi51xg its in mandarin tho
ren
renOP3d ago
i got surprised with the BA detector that i sent above tho, my friend's website that we were testing on got only around 500 requests but reported around 8 issues, that is like 85% accurate
_null
_null3d ago
I'm checking it out. Translate works other than for the graphics
ren
renOP3d ago
its uhm, not well written i'd say, just rough stuff, and info grabbed online that i havent checked much
_null
_null3d ago
haha, well it's formatted well and its hard to say with a translation anyway, I wouldn't have known
ren
renOP3d ago
ill rewrite one after im finished with the technical stuff, with more knowledge in my brain aha also, just a quick question, if my goal is to research and try and detect the owasp top 10 api or top 5 as my graduation project, how would you rate this project like just off it's topic
ren
renOP3d ago
these are the top 5
No description
ren
renOP3d ago
ive looked through paragraphs talking about bola and broken authentication, but i havent looked at the other three yet, im not quite sure whats the major difference between api1 and api3 broken object level authorization and broken object property level authorization, my understandings stop at they involve two user's individual credentials accessing another i believe, correct me if im wrong tho
_null
_null3d ago
I would need to really examine these closely, but my initial reaction is that you will detect the majority of flaws. The edge cases are going to be what becomes really difficult to detect and will require most of your effort.
ren
renOP3d ago
yes thats what ive been doing for the past week, getting new vulnerable servers to test the functionalities of the scanners
_null
_null3d ago
That is a pretty good way to describe bola and bopl. One is access to the entire object by a user that shouldn't have authorization while one the other is access to specific properties of an object they should not have access to
ren
renOP3d ago
also just a lil conversation beyond this topic, ive been wanting to get into the UCL london uni, ive heard several cyber sec certificates should help, im working on the google's cyber sec course right now almost finishing, im supposed to go for comptia correct?
_null
_null3d ago
I'm US based, I'm not entirely certain about UCL's requirements
ren
renOP3d ago
yeah but in general certificates should help in getting into this field right?
_null
_null3d ago
I would say that is a fairly standard path here in the US
ren
renOP3d ago
alr, ill work on the certificates on my free time
_null
_null3d ago
yeah, I would think it would help. You already seem to be building a portfolio which I think is a stronger indication of your understanding and skill
ren
renOP3d ago
ill look through these two when i wake up ig would any specific projects help with my portfolio or should i just keep on with my creativity
_null
_null3d ago
follow your interests. It will always be evident in your work
ren
renOP3d ago
i currently only have a small github repository amount https://github.com/xireno?tab=repositories
GitHub
xireno - Repositories
xireno has 6 repositories available. Follow their code on GitHub.
ren
renOP3d ago
alright thanks alot for the tips
_null
_null3d ago
thats fine. You can also branch out into other forms like blogs, articles, or talks. anything that "Shows" understanding rather than claiming understanding you are welcome. I think you have a bright future ahead
ren
renOP3d ago
yes im reaching out to communities within my school and outside, although the cs major in my school doesnt contain cyber sec, well theres only 1 professor and a dozen seniors, so most of my understandings come from online ill surely note this
Doulos
Doulos3d ago
Apisec university

Did you find this page helpful?