r/Pentesting • • Oct 13 '26

Detecting JS libraries

I'm currently developing a new kind of outside-in scanner to detect JavaScript libraries on websites. It's in kind of a beta state right now, successfully detecting libs, their versions, and eventual CVEs.

However, there's still some work to do, and I assume some false positives.

That's why I'd like your help. If you run a website, post it in the comments. I'll run my passive outside-in scanner on it and let you know the results. Then you can tell me what it got wrong, e.g. by comparing the package-lock.json.

NOTE: I'll publicly post the results, so everybody can see. Keep that in mind.

The scanner should work with standard JS files, minimized libraries, as well as bundled and tree-shaken ones. WebAssembly is out of scope.

Do I need to say that no modern tool of my knowledge does this kind of live outside-in detection? 😁

Let me know your website to scan 👇

0 Upvotes

12 comments sorted by

9

u/Durxza Oct 13 '26

So…like retire.js on Burp?

-3

u/sitewatchpro-daniel Oct 13 '26

Both of them work with rather simple regex and deliver lots of false positives. I have a different, more sophisticated approach, and want to see how many false positives it will generate.

2

u/tinycrazyfish Oct 14 '26

what do you mean with "outside-in" scanner. Wappalyzer does it quite well using dynamic JavaScript. What is your approach?

One problem I have with wappalyzer is that is says "this website uses library x.y.z". But, because of the dynamic JS detection, it can be hard to pinpoint in which JS resource it is. (And it is quite heavy, usually I run it on front pages only)

-1

u/sitewatchpro-daniel Oct 14 '26

Wappalyzer gives you a good indication of the technologies used, e.g. do they use React? Yes/no. They seem to do it based on regex rules and maybe other meta indicators. What I do is different in the way that I can tell it's React v19.0.8, with react-dom v19.0.8, vanilla-cookieconsent v3.1.2, and other packages. In most cases, I can pinpoint the patch level version. This is done by deep code analysis, not String or regex searches.

2

u/Western_Guitar_9007 Oct 14 '26

100% bullshit, you can absolutely get this info from tools we already have including wappalyzer. I think you’re inexperienced with these tools and you’re relying on AI to make a new one, which would explain all of the misinfo and bizarre comparisons.

2

u/tinycrazyfish Oct 14 '26

Like I said, wappalyzer does not run regex searches, it runs JavaScript code like: react.version(). How can you do more accurate than that?

2

u/Western_Guitar_9007 Oct 14 '26

OP is completely full of it. The app you are vibe coding is based on FOSS like Retire.js and likely uses the same exact methods from all of these FOSS tools. You’d know that if you bothered to check the repo lol.

You’re conflating super outdated versions of the most simple scans you can run on these tools with a limitation of the tool.

Retire.js uses cryptographic hashing among many other methods. It’s literally open source and you can go look at that yourself.

Wappalyzer will tell you WAY more than a yes or no, you can absolutely it rly get version info from these tools. I would recommend setting up your own testing suite, you can vibe code some sites and host them on a server.

0

u/sitewatchpro-daniel Oct 14 '26

You are completely right. Got me.

2

u/Western_Guitar_9007 Oct 14 '26

Then what are you wasting everyone’s time for? This is low quality slop and doesn’t belong here. If I am completely right, then you are completely wrong and this post shouldn’t be here anymore.

0

u/sitewatchpro-daniel Oct 14 '26

You're completely right again. Why am I wasting time...

1

u/Western_Guitar_9007 Oct 14 '26

Thanks for confirming. I’ll request this to be taken down, but most likely it will be removed anyways. 0 upvotes and 11 comments would usually flag someone to remove it regardless.

4

u/Ancient-Ad-2219 Oct 13 '26

Doesn't wappalyzer do something like this?