Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Threads integration updating verifyLInk api / answerAbos and tiktok api v2 #289

Merged
merged 9 commits into from
Jul 17, 2023

Conversation

HamdiBenK
Copy link
Contributor

@HamdiBenK HamdiBenK commented Jul 14, 2023

Tiktok api v2 integration instead of the v1 version that will become deprecated.
adding verifyThread function in verifyLink api to check the thread Url from client
adding threadsAbos function in aswerAbos to fetch user account followers_count
adding check/insta api to check if a user has an instagram account so we'll allow him to add a threads account

manager/oracles.js Fixed Show fixed Hide fixed
const threadsAbos = async (idPost, id, userName) => {
try {
var followers = 0
var campaign_link = await CampaignLink.findOne({ idPost }).lean()

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query object depends on a
user-provided value
.
routes/profile.routes.js Fixed Show fixed Hide fixed
routes/profile.routes.js Fixed Show fixed Hide fixed
@@ -1393,4 +1396,11 @@
router.get('/Tiktok/ProfilPrivacy', verifyAuth, ProfilPrivacy)


router.get('/check/threads-account',verifyAuth,checkThreads)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
@@ -1393,4 +1396,11 @@
router.get('/Tiktok/ProfilPrivacy', verifyAuth, ProfilPrivacy)


router.get('/check/threads-account',verifyAuth,checkThreads)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
@@ -1393,4 +1396,11 @@
router.get('/Tiktok/ProfilPrivacy', verifyAuth, ProfilPrivacy)


router.get('/check/threads-account',verifyAuth,checkThreads)

router.get('/add/threads-account', verifyAuth, addThreadsAccount)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
@@ -1393,4 +1396,11 @@
router.get('/Tiktok/ProfilPrivacy', verifyAuth, ProfilPrivacy)


router.get('/check/threads-account',verifyAuth,checkThreads)

router.get('/add/threads-account', verifyAuth, addThreadsAccount)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
routes/profile.routes.js Fixed Show fixed Hide fixed
routes/profile.routes.js Fixed Show fixed Hide fixed

exports.verifyThread = async (idPost, threads_id) => {
try {
const res = await axios.get(`https://www.threads.net/t/${idPost}`);

Check failure

Code scanning / CodeQL

Server-side request forgery Critical

The
URL
of this request depends on a
user-provided value
.

router.get('/add/threads-account', verifyAuth, addThreadsAccount)

router.delete('/remove/threads-account/:id', verifyAuth, idThreadsAccountValidation,removeThreadsAccount)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.

router.get('/add/threads-account', verifyAuth, addThreadsAccount)

router.delete('/remove/threads-account/:id', verifyAuth, idThreadsAccountValidation,removeThreadsAccount)

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
a database access
, but is not rate-limited.
This route handler performs
a database access
, but is not rate-limited.
@HamdiBenK HamdiBenK merged commit 3ab24f9 into develop Jul 17, 2023
2 of 3 checks passed
@HamdiBenK HamdiBenK deleted the threads-integration branch July 17, 2023 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants